[PATCH 3/6] [cppchecker] unreadVar warning - deleted unneded variable

Pierre-André Jacquod pjacquod at alumni.ethz.ch
Fri Sep 9 12:30:04 PDT 2011


no used, since part of the coding commented since 2005
---
 .../shellextensions/migrateinstallpath.cxx         |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/setup_native/source/win32/customactions/shellextensions/migrateinstallpath.cxx b/setup_native/source/win32/customactions/shellextensions/migrateinstallpath.cxx
index a487309..395a21f 100644
--- a/setup_native/source/win32/customactions/shellextensions/migrateinstallpath.cxx
+++ b/setup_native/source/win32/customactions/shellextensions/migrateinstallpath.cxx
@@ -86,10 +86,6 @@ extern "C" UINT __stdcall MigrateInstallPath( MSIHANDLE handle )
     std::_tstring   sProductKey = "Software\\" + sManufacturer + "\\" + sDefinedName +
                                         "\\" + sUpdateVersion + "\\" + sUpgradeCode;
 
-    std::_tstring   mystr;
-    mystr = "ProductKey: " + sProductKey;
-    // MessageBox( NULL, mystr.c_str(), "ProductKey", MB_OK );
-
     if ( ERROR_SUCCESS == RegOpenKey( HKEY_CURRENT_USER,  sProductKey.c_str(), &hKey ) )
     {
         if ( ERROR_SUCCESS == RegQueryValueEx( hKey, TEXT("INSTALLLOCATION"), NULL, NULL, (LPBYTE)szValue, &nValueSize ) )
-- 
1.7.3.4


--------------000904010106030702050302
Content-Type: text/x-patch;
 name="0002-cppchecker-unreadVar-warning-deletion-of-unneded-var.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename*0="0002-cppchecker-unreadVar-warning-deletion-of-unneded-var.pa";
 filename*1="tch"



More information about the LibreOffice mailing list