Kaydet (Commit) 49ebf4f9 authored tarafından Caolán McNamara's avatar Caolán McNamara

loplugin: unused string and misleading if/else indent

Change-Id: Idd0c4195e5988b3a0ee64282463db44e43d0c597
üst 0ac7f612
...@@ -725,7 +725,6 @@ void SvtURLBox::TryAutoComplete( sal_Bool bForce ) ...@@ -725,7 +725,6 @@ void SvtURLBox::TryAutoComplete( sal_Bool bForce )
{ {
if( Application::AnyInput( VCL_INPUT_KEYBOARD ) ) return; if( Application::AnyInput( VCL_INPUT_KEYBOARD ) ) return;
String aMatchString;
String aCurText = GetText(); String aCurText = GetText();
Selection aSelection( GetSelection() ); Selection aSelection( GetSelection() );
if( aSelection.Max() != aCurText.Len() && !bForce ) if( aSelection.Max() != aCurText.Len() && !bForce )
......
...@@ -316,13 +316,11 @@ IMPL_LINK( ImpPathDialog, ClickHdl, Button*, pBtn ) ...@@ -316,13 +316,11 @@ IMPL_LINK( ImpPathDialog, ClickHdl, Button*, pBtn )
} }
} }
} }
else else if ( pBtn == pCancelBtn )
if ( pBtn == pCancelBtn )
{ {
GetPathDialog()->EndDialog( sal_False ); GetPathDialog()->EndDialog( sal_False );
} }
else else if ( pBtn == pHomeBtn )
if ( pBtn == pHomeBtn )
{ {
::rtl::OUString aHomeDir; ::rtl::OUString aHomeDir;
osl::Security aSecurity; osl::Security aSecurity;
...@@ -336,8 +334,7 @@ IMPL_LINK( ImpPathDialog, ClickHdl, Button*, pBtn ) ...@@ -336,8 +334,7 @@ IMPL_LINK( ImpPathDialog, ClickHdl, Button*, pBtn )
} }
} }
} }
else else if ( pBtn == pNewDirBtn )
if ( pBtn == pNewDirBtn )
{ {
DirEntry aFile( pEdit->GetText() ); DirEntry aFile( pEdit->GetText() );
if( ! aFile.Exists() && ! FileStat( aFile ).IsKind( FSYS_KIND_WILD ) ) if( ! aFile.Exists() && ! FileStat( aFile ).IsKind( FSYS_KIND_WILD ) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment