hello, I've got one class constructor with two option parameter; so I can create the object like this:
Qt Code:
  1. Myobj::Myobj( char* parone="", char* partwo="") :
  2. _name(parone), _value(partwo) {........}
  3.  
  4. Myobj obj(); // in this case warning
  5. Myobj obj("one", "two"); //this ok.
  6.  
  7. //warning is: prototyped function not called (was a variable definition intended?)
To copy to clipboard, switch view to plain text mode 
I suppose that to using default parameters is necessary has first parameters not default. Is this? Anyway: I'd like avoid a second constructor because I had to duplicate its contents (and It could be large). Ideas?

THanks..