[Libreoffice-commits] .: sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Wed Nov 24 20:41:11 PST 2010
sc/source/ui/docshell/docfunc.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 70d8eec3b89ff2034c74162fc8c8272654535c08
Author: Kohei Yoshida <kyoshida at novell.com>
Date: Wed Nov 24 23:40:38 2010 -0500
cppcheck: Fixed self-assignment of sModuleName.
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index 555a4da..a414a73 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -2674,13 +2674,13 @@ void VBA_InsertModule( ScDocument& rDoc, SCTAB nTab, String& sModuleName, String
sal_Int32 nNum = 0;
String genModuleName;
if ( sModuleName.Len() )
- sModuleName = sModuleName;
+ genModuleName = sModuleName;
else
{
genModuleName = String::CreateFromAscii( "Sheet1" );
nNum = 1;
}
- while( xLib->hasByName( genModuleName ) )
+ while( xLib->hasByName( genModuleName ) )
genModuleName = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "Sheet")) + rtl::OUString::valueOf( ++nNum );
uno::Any aSourceAny;
More information about the Libreoffice-commits
mailing list