Hi,
you surely know this one, but it is really annoying and I hope you might fix it. From this code :
int result = 0;
POINT mouseCoords;
GetCursorPos ( &mouseCoords );
result = mouseCoords.x + mouseCoords.y;
When I extract the three last lines into a new method, I get this :
int MyClass::MyMethod( int result )
{
POINT mouseCoords;
GetCursorPos ( &mouseCoords );
result = mouseCoords.x + mouseCoords.y; return result;
}
Where the result variable is also passed as argument. This is annoying to correct it by hand each time I use this feature.
Also note that the "return result;" statement is not on a new line. Even if my "Refactor Extract Method" snippet seems ok :
$end$$SymbolType$ $SymbolContext$( $ParameterList$ ) $MethodQualifier$
{
$MethodBody$
}
Thanks you for your time.