[PATCH 4/6] [cppchecker] unreadVar warning - deleted unneded variable
Pierre-André Jacquod
pjacquod at alumni.ethz.ch
Fri Sep 9 12:34:32 PDT 2011
Also deleted a part of the code that did nothing, just defining
variable and reading them as argument.
---
desktop/win32/source/applauncher/launcher.cxx | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/desktop/win32/source/applauncher/launcher.cxx b/desktop/win32/source/applauncher/launcher.cxx
index a7a17b5..fd8edb1 100644
--- a/desktop/win32/source/applauncher/launcher.cxx
+++ b/desktop/win32/source/applauncher/launcher.cxx
@@ -67,11 +67,6 @@ extern "C" int APIENTRY _tWinMain( HINSTANCE, HINSTANCE, LPTSTR, int )
LPTSTR lpCommandLine = GetCommandLine();
- LPTSTR *ppArguments = NULL;
- int nArguments = 0;
-
- ppArguments = GetArgv( &nArguments );
-
{
lpCommandLine = (LPTSTR)_alloca( sizeof(_TCHAR) * (_tcslen(lpCommandLine) + _tcslen(APPLICATION_SWITCH) + 2) );
--
1.7.3.4
--------------000904010106030702050302
Content-Type: text/x-patch;
name="0003-cppchecker-unreadVar-warning-deleted-unneded-variabl.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename*0="0003-cppchecker-unreadVar-warning-deleted-unneded-variabl.pa";
filename*1="tch"
More information about the LibreOffice
mailing list