summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/odbcbase/ODatabaseMetaData.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/odbcbase/ODatabaseMetaData.cxx')
-rw-r--r--connectivity/source/drivers/odbcbase/ODatabaseMetaData.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/drivers/odbcbase/ODatabaseMetaData.cxx b/connectivity/source/drivers/odbcbase/ODatabaseMetaData.cxx
index 45d891fa3a5b..9b88aea0df5d 100644
--- a/connectivity/source/drivers/odbcbase/ODatabaseMetaData.cxx
+++ b/connectivity/source/drivers/odbcbase/ODatabaseMetaData.cxx
@@ -1333,7 +1333,7 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion( ) throw(RuntimeExc
aValue.appendAscii("UCASE,");
- if ( aValue.getLength() )
+ if ( !aValue.isEmpty() )
aValue.setLength(aValue.getLength()-1);
return aValue.makeStringAndClear();
@@ -1388,7 +1388,7 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion( ) throw(RuntimeExc
if(nValue & SQL_FN_TD_YEAR)
aValue.appendAscii("YEAR,");
- if ( aValue.getLength() )
+ if ( !aValue.isEmpty() )
aValue.setLength(aValue.getLength()-1);
return aValue.makeStringAndClear();
@@ -1407,7 +1407,7 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion( ) throw(RuntimeExc
if(nValue & SQL_FN_SYS_USERNAME)
aValue.appendAscii("USERNAME,");
- if ( aValue.getLength() )
+ if ( !aValue.isEmpty() )
aValue.setLength(aValue.getLength()-1);
return aValue.makeStringAndClear();
@@ -1468,7 +1468,7 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion( ) throw(RuntimeExc
if(nValue & SQL_FN_NUM_TRUNCATE)
aValue.appendAscii("TRUNCATE,");
- if ( aValue.getLength() )
+ if ( !aValue.isEmpty() )
aValue.setLength(aValue.getLength()-1);
return aValue.makeStringAndClear();