summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ) )