summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-02-25 02:01:54 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-02-25 03:14:00 +0100
commit800376357fd1fc0594ba3dc5e0579fd163a3039a (patch)
treef6854fcc299a1aef187b140555f9539f9f539aa9 /dbaccess
parent1bda31ac1374f18bda488c93c1420b6f208bd7d0 (diff)
loplugin: unused variable
First parameter is unused since fb98c33c688ef479a64f9838abd63f617fd4b589 Change-Id: Iff9ff51227c5244950830febf2cdcf78e1de4d29
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/control/SqlNameEdit.cxx8
-rw-r--r--dbaccess/source/ui/inc/SqlNameEdit.hxx2
2 files changed, 4 insertions, 6 deletions
diff --git a/dbaccess/source/ui/control/SqlNameEdit.cxx b/dbaccess/source/ui/control/SqlNameEdit.cxx
index 005f522893ca..04e960292cf6 100644
--- a/dbaccess/source/ui/control/SqlNameEdit.cxx
+++ b/dbaccess/source/ui/control/SqlNameEdit.cxx
@@ -32,14 +32,12 @@ namespace dbaui
);
}
//------------------------------------------------------------------
- sal_Bool OSQLNameChecker::checkString( const ::rtl::OUString& _sOldValue,
- const ::rtl::OUString& _sToCheck,
+ sal_Bool OSQLNameChecker::checkString(const ::rtl::OUString& _sToCheck,
::rtl::OUString& _rsCorrected)
{
sal_Bool bCorrected = sal_False;
if ( m_bCheck )
{
- XubString sSavedValue = _sOldValue;
XubString sText = _sToCheck;
xub_StrLen nMatch = 0;
for ( xub_StrLen i=nMatch;i < sText.Len(); ++i )
@@ -59,7 +57,7 @@ namespace dbaui
void OSQLNameEdit::Modify()
{
::rtl::OUString sCorrected;
- if ( checkString( GetSavedValue(),GetText(),sCorrected ) )
+ if ( checkString( GetText(),sCorrected ) )
{
Selection aSel = GetSelection();
aSel.setMax( aSel.getMin() );
@@ -73,7 +71,7 @@ namespace dbaui
void OSQLNameComboBox::Modify()
{
::rtl::OUString sCorrected;
- if ( checkString( GetSavedValue(),GetText(),sCorrected ) )
+ if ( checkString( GetText(),sCorrected ) )
{
Selection aSel = GetSelection();
aSel.setMax( aSel.getMin() );
diff --git a/dbaccess/source/ui/inc/SqlNameEdit.hxx b/dbaccess/source/ui/inc/SqlNameEdit.hxx
index c79eb2722fb4..cfe88d0ea838 100644
--- a/dbaccess/source/ui/inc/SqlNameEdit.hxx
+++ b/dbaccess/source/ui/inc/SqlNameEdit.hxx
@@ -50,7 +50,7 @@ namespace dbaui
{
m_bCheck = _bCheck;
}
- sal_Bool checkString(const ::rtl::OUString& _sOldValue,const ::rtl::OUString& _sToCheck,::rtl::OUString& _rsCorrected);
+ sal_Bool checkString(const ::rtl::OUString& _sToCheck,::rtl::OUString& _rsCorrected);
};
//==================================================================
class OSQLNameEdit : public Edit