@@ -440,7 +440,7 @@ void CBandWindow::SendEmail( void )
440440 if (FAILED (m_pBrowser->QueryActiveShellView (&pView))) return ;
441441
442442 // check if there is anything selected
443- CComQIPtr<IFolderView> pView2= pView;
443+ CComQIPtr<IFolderView> pView2 ( pView) ;
444444 int count;
445445 if (pView2 && SUCCEEDED (pView2->ItemCount (SVGIO_SELECTION,&count)) && count==0 )
446446 return ;
@@ -449,7 +449,7 @@ void CBandWindow::SendEmail( void )
449449 CComPtr<IDataObject> pDataObj;
450450 if (FAILED (pView->GetItemObject (SVGIO_SELECTION,IID_IDataObject,(void **)&pDataObj)))
451451 return ;
452- CComQIPtr<IDataObjectAsyncCapability> pAsync= pDataObj;
452+ CComQIPtr<IDataObjectAsyncCapability> pAsync ( pDataObj) ;
453453 if (pAsync)
454454 pAsync->SetAsyncMode (FALSE );
455455
@@ -494,7 +494,7 @@ void CBandWindow::SendToZip( void )
494494 if (FAILED (m_pBrowser->QueryActiveShellView (&pView))) return ;
495495
496496 // check if there is anything selected
497- CComQIPtr<IFolderView> pView2= pView;
497+ CComQIPtr<IFolderView> pView2 ( pView) ;
498498
499499 CComPtr<IShellFolder> pFolder;
500500 if (FAILED (pView2->GetFolder (IID_IShellFolder,(void **)&pFolder)) || !pFolder) return ;
@@ -507,15 +507,15 @@ void CBandWindow::SendToZip( void )
507507 CComPtr<IDataObject> pDataObj;
508508 if (FAILED (pView->GetItemObject (SVGIO_SELECTION,IID_IDataObject,(void **)&pDataObj)))
509509 return ;
510- CComQIPtr<IDataObjectAsyncCapability> pAsync= pDataObj;
510+ CComQIPtr<IDataObjectAsyncCapability> pAsync ( pDataObj) ;
511511 if (pAsync)
512512 pAsync->SetAsyncMode (FALSE );
513513
514514 // drop into the SendMail handler
515515 CComPtr<IDropTarget> pDropTarget;
516516 if (SUCCEEDED (CoCreateInstance (CLSID_SendToZip,NULL ,CLSCTX_ALL,IID_IDropTarget,(void **)&pDropTarget)))
517517 {
518- CComQIPtr<IObjectWithSite> pDropWithSite= pDropTarget;
518+ CComQIPtr<IObjectWithSite> pDropWithSite ( pDropTarget) ;
519519 if (pDropWithSite)
520520 {
521521 CComObject<CSendToZipHelper> *pHelper;
@@ -568,7 +568,7 @@ void CBandWindow::NewFolder( void )
568568{
569569 CComPtr<IShellView> pView;
570570 if (FAILED (m_pBrowser->QueryActiveShellView (&pView))) return ;
571- CComQIPtr<IFolderView> pView2= pView;
571+ CComQIPtr<IFolderView> pView2 ( pView) ;
572572 if (!pView2) return ;
573573
574574 {
@@ -705,7 +705,7 @@ void CBandWindow::ExecuteCommandFile( const wchar_t *pText )
705705 CComPtr<IShellView> pView;
706706 if (SUCCEEDED (m_pBrowser->QueryActiveShellView (&pView)))
707707 {
708- CComQIPtr<IFolderView> pView2= pView;
708+ CComQIPtr<IFolderView> pView2 ( pView) ;
709709 if (!pView2) return ;
710710 CComPtr<IShellFolder> pFolder;
711711 if (FAILED (pView2->GetFolder (IID_IShellFolder,(void **)&pFolder)) || !pFolder) return ;
@@ -785,7 +785,7 @@ void CBandWindow::ExecuteCustomCommand( const wchar_t *pCommand )
785785 {
786786 CComPtr<IPersistFolder2> pFolder;
787787 CAbsolutePidl pidl;
788- CComQIPtr<IFolderView> pView2= pView;
788+ CComQIPtr<IFolderView> pView2 ( pView) ;
789789 if (pView2 && SUCCEEDED (pView2->GetFolder (IID_IPersistFolder2,(void **)&pFolder)) && SUCCEEDED (pFolder->GetCurFolder (&pidl)))
790790 {
791791 // get current path
@@ -900,13 +900,13 @@ void CBandWindow::ExecuteCustomCommand( const wchar_t *pCommand )
900900 }
901901 else if (_wcsicmp (exe,L" sortby" )==0 )
902902 {
903- CComQIPtr<IFolderView2> pView2= pView;
903+ CComQIPtr<IFolderView2> pView2 ( pView) ;
904904 if (pView2)
905905 ViewByProperty (pView2,params,false );
906906 }
907907 else if (_wcsicmp (exe,L" groupby" )==0 )
908908 {
909- CComQIPtr<IFolderView2> pView2= pView;
909+ CComQIPtr<IFolderView2> pView2 ( pView) ;
910910 if (pView2)
911911 ViewByProperty (pView2,params,true );
912912 }
@@ -1128,7 +1128,7 @@ LRESULT CBandWindow::OnCommand( UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& b
11281128 CComPtr<IShellView> pView;
11291129 if (SUCCEEDED (m_pBrowser->QueryActiveShellView (&pView)))
11301130 {
1131- CComQIPtr<IFolderView2> pView2= pView;
1131+ CComQIPtr<IFolderView2> pView2 ( pView) ;
11321132 if (pView2) pView2->DoRename ();
11331133 }
11341134 return TRUE ;
@@ -1283,7 +1283,7 @@ LRESULT CBandWindow::OnCommand( UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& b
12831283 if (FAILED (m_pBrowser->QueryActiveShellView (&pView)))
12841284 return TRUE ;
12851285
1286- CComQIPtr<IFolderView2> pView2= pView;
1286+ CComQIPtr<IFolderView2> pView2 ( pView) ;
12871287 if (!pView2) return TRUE ;
12881288
12891289 // ID_DESELECT
@@ -1730,7 +1730,7 @@ void CBandWindow::UpdateToolbar( void )
17301730 m_pBrowser->QueryActiveShellView (&pView);
17311731 if (pView)
17321732 {
1733- CComQIPtr<IFolderView> pView2= pView;
1733+ CComQIPtr<IFolderView> pView2 ( pView) ;
17341734 if (pView2)
17351735 {
17361736 CComPtr<IPersistFolder2> pFolder;
0 commit comments