Bind pointer address?

I am working on other code at work (Qt Desktop application) and found this:

connect( &*mpMainWin, SIGNAL(whatever()), this, SLOT(whatever()) ));

It’s hard for me to understand the part &*mpMainWin. As far as I know about pointers, it returns the address of the de-referured pointer mpMainWin.

But it mpMainWinalready has this address, so its direct inclusion as a parameter should have the same result.

So, if I don’t miss anything, and my logic is correct, what is the reason for this? and if it is, when should we use this syntax?

+5
source share
1 answer

( , , operator*()), . , mpMainWin, , . mpMainWin - , , &*mpMainWin mpMainWin.

+9

All Articles