79420506

Date: 2025-02-07 10:21:51
Score: 1
Natty:
Report link

This is just replacing a pointer with another pointer. nix1 = nix2

That was a total thinking failure. What I actually wanted to test was something like that:

{
     Nix nix4(4, "Hello, I'm four");

     *nix1 = nix4;
}
qWarning() << "nix1: " << nix1->display(4);

And that works.

solved, actually with help from SGaist (qt.forum)

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jodeli