summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-01-20 21:51:16 +0100
committerJulien Nabet <serval2412@yahoo.fr>2013-01-20 21:51:35 +0100
commit6172a95bb077fd43595e02084b5394516738844b (patch)
tree97b99b2a86f5961e8fceef29bcf6730cf7287d07
parent5bbc006823a8eba8dbcf06943f76c8fcb30ec7ba (diff)
Some cppcheck cleaning
Change-Id: Ie975903daa84ddafb2ba7d58e18b8ef20b331596
-rw-r--r--stoc/source/inspect/introspection.cxx1
-rw-r--r--svtools/source/dialogs/ServerDetailsControls.cxx4
2 files changed, 1 insertions, 4 deletions
diff --git a/stoc/source/inspect/introspection.cxx b/stoc/source/inspect/introspection.cxx
index 595608859003..ea62d4d3efb0 100644
--- a/stoc/source/inspect/introspection.cxx
+++ b/stoc/source/inspect/introspection.cxx
@@ -313,7 +313,6 @@ sal_Int32 IntrospectionAccessStatic_Impl::getMethodIndex( const ::rtl::OUString&
else
{
sal_Int32 nSearchFrom = aMethodName.getLength();
- nSearchFrom = aMethodName.getLength();
while( true )
{
// Strategy: Search back until the first '_' is found
diff --git a/svtools/source/dialogs/ServerDetailsControls.cxx b/svtools/source/dialogs/ServerDetailsControls.cxx
index 8b10c1038b23..3bdae1bdc8c0 100644
--- a/svtools/source/dialogs/ServerDetailsControls.cxx
+++ b/svtools/source/dialogs/ServerDetailsControls.cxx
@@ -134,9 +134,7 @@ INetURLObject HostDetailsContainer::getUrl( )
bool HostDetailsContainer::setUrl( const INetURLObject& rUrl )
{
- bool bSuccess = false;
-
- bSuccess = verifyScheme( INetURLObject::GetScheme( rUrl.GetProtocol( ) ) );
+ bool bSuccess = verifyScheme( INetURLObject::GetScheme( rUrl.GetProtocol( ) ) );
if ( bSuccess )
{