Author Topic: Quick refactoring malfunction  (Read 1733 times)

Wanderer

  • Senior Community Member
  • Posts: 558
  • Hero Points: 23
Quick refactoring malfunction
« on: August 12, 2008, 02:16:22 pm »
SlickEdit 13.0.1, h/f 20, WinXP

I wanted to change
BOOL CreateStatusBar()
to
BOOL CreateStatusBar(HWND hwnd)

I right-click on the function, Quick Refactoring->Modify Parameter List..., fill in the type and argument name.

Here are the changes SlickEdit proposed:
------------------------
BOOL CreateStatusBar()  // note unchanged
{
   BOOL bRet = TRUE;
   CComPtr<IUnknown> spControl;

   OLECHAR ppszGuid[128];
   StringFromGUID2(__uuidof(HWND hwndStatusBar), (LPOLESTR)ppszGuid, 128);
------------------------
and
    g_pHandler = new CEventHandler(hwnd);   // CEventHandler doesn't take any params...
and
    CreateStatusBar();  // note unchanged
and
   BOOL CreateStatusBar()HWND hwnd;


Very odd.


« Last Edit: August 12, 2008, 02:20:14 pm by Wanderer »