summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-12 11:38:40 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-10-12 11:38:40 +0100
commit49ebf4f91d14af51bc3772c675de19b5891e3d36 (patch)
treeeb1bffec7d8a5d6794568f478a695bcd7cc7bad8
parent0ac7f6120eab04a95185342e935c0bbca4d8cc43 (diff)
loplugin: unused string and misleading if/else indent
Change-Id: Idd0c4195e5988b3a0ee64282463db44e43d0c597
-rw-r--r--svtools/source/control/inettbc.cxx1
-rw-r--r--svtools/source/dialogs/filedlg2.cxx9
2 files changed, 3 insertions, 7 deletions
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx
index b0d80e773245..490a818db166 100644
--- a/svtools/source/control/inettbc.cxx
+++ b/svtools/source/control/inettbc.cxx
@@ -725,7 +725,6 @@ void SvtURLBox::TryAutoComplete( sal_Bool bForce )
{
if( Application::AnyInput( VCL_INPUT_KEYBOARD ) ) return;
- String aMatchString;
String aCurText = GetText();
Selection aSelection( GetSelection() );
if( aSelection.Max() != aCurText.Len() && !bForce )
diff --git a/svtools/source/dialogs/filedlg2.cxx b/svtools/source/dialogs/filedlg2.cxx
index 2e1303865487..b5b2dfd6d6ee 100644
--- a/svtools/source/dialogs/filedlg2.cxx
+++ b/svtools/source/dialogs/filedlg2.cxx
@@ -316,13 +316,11 @@ IMPL_LINK( ImpPathDialog, ClickHdl, Button*, pBtn )
}
}
}
- else
- if ( pBtn == pCancelBtn )
+ else if ( pBtn == pCancelBtn )
{
GetPathDialog()->EndDialog( sal_False );
}
- else
- if ( pBtn == pHomeBtn )
+ else if ( pBtn == pHomeBtn )
{
::rtl::OUString aHomeDir;
osl::Security aSecurity;
@@ -336,8 +334,7 @@ IMPL_LINK( ImpPathDialog, ClickHdl, Button*, pBtn )
}
}
}
- else
- if ( pBtn == pNewDirBtn )
+ else if ( pBtn == pNewDirBtn )
{
DirEntry aFile( pEdit->GetText() );
if( ! aFile.Exists() && ! FileStat( aFile ).IsKind( FSYS_KIND_WILD ) )