[Libreoffice-commits] core.git: shell/source
Julien Nabet
serval2412 at yahoo.fr
Fri Oct 11 14:33:23 PDT 2013
shell/source/tools/regsvrex/regsvrex.cxx | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
New commits:
commit 6efa9d1d23cf3f6987282959483ed4d3b763d465
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Fri Oct 11 23:31:42 2013 +0200
cppcheck: reduce scope
Change-Id: Ie33ae5c3bd1213bc4032e66d0cd7a3faefc7dfcb
diff --git a/shell/source/tools/regsvrex/regsvrex.cxx b/shell/source/tools/regsvrex/regsvrex.cxx
index fb26bfd..34d5bcde 100644
--- a/shell/source/tools/regsvrex/regsvrex.cxx
+++ b/shell/source/tools/regsvrex/regsvrex.cxx
@@ -42,8 +42,6 @@ bool IsUnregisterParameter(const char* Param)
int main(int argc, char* argv[])
{
HMODULE hmod;
- lpfnDllRegisterServer lpfn_register;
- lpfnDllUnregisterServer lpfn_unregister;
if (2 == argc)
{
@@ -51,7 +49,7 @@ int main(int argc, char* argv[])
if (hmod)
{
- lpfn_register = (lpfnDllRegisterServer)GetProcAddress(
+ lpfnDllRegisterServer lpfn_register = (lpfnDllRegisterServer)GetProcAddress(
hmod, "DllRegisterServer");
if (lpfn_register)
@@ -66,7 +64,7 @@ int main(int argc, char* argv[])
if (hmod)
{
- lpfn_unregister = (lpfnDllUnregisterServer)GetProcAddress(
+ lpfnDllUnregisterServer lpfn_unregister = (lpfnDllUnregisterServer)GetProcAddress(
hmod, "DllUnregisterServer");
if (lpfn_unregister)
More information about the Libreoffice-commits
mailing list