summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/api/RowSetBase.cxx2
-rw-r--r--dbaccess/source/ext/adabas/ASqlNameEdit.cxx11
-rw-r--r--dbaccess/source/sdbtools/connection/objectnames.cxx2
-rw-r--r--dbaccess/source/ui/browser/brwctrlr.cxx2
-rw-r--r--dbaccess/source/ui/control/SqlNameEdit.cxx11
-rw-r--r--dbaccess/source/ui/misc/UITools.cxx4
6 files changed, 20 insertions, 12 deletions
diff --git a/dbaccess/source/core/api/RowSetBase.cxx b/dbaccess/source/core/api/RowSetBase.cxx
index 0de60dfdc632..1d1ce74c7e6f 100644
--- a/dbaccess/source/core/api/RowSetBase.cxx
+++ b/dbaccess/source/core/api/RowSetBase.cxx
@@ -739,10 +739,12 @@ sal_Bool SAL_CALL ORowSetBase::isLast( ) throw(SQLException, RuntimeException)
return sal_False;
if ( rowDeleted() )
+ {
if ( !m_pCache->m_bRowCountFinal )
return sal_False;
else
return ( m_nDeletedPosition == impl_getRowCount() );
+ }
positionCache( MOVE_NONE_REFRESH_ONLY );
sal_Bool bIsLast = m_pCache->isLast();
diff --git a/dbaccess/source/ext/adabas/ASqlNameEdit.cxx b/dbaccess/source/ext/adabas/ASqlNameEdit.cxx
index ef4af2017ab1..7f1f17de125b 100644
--- a/dbaccess/source/ext/adabas/ASqlNameEdit.cxx
+++ b/dbaccess/source/ext/adabas/ASqlNameEdit.cxx
@@ -36,11 +36,12 @@ namespace adabasui
//------------------------------------------------------------------
sal_Bool isCharOk(sal_Unicode _cChar)
{
- return (_cChar >= 'A' && _cChar <= 'Z' ||
- _cChar == '_' ||
- (_cChar >= '0' && _cChar <= '9') ||
- (_cChar >= 'a' && _cChar <= 'z'));
-
+ return (
+ (_cChar >= 'A' && _cChar <= 'Z') ||
+ _cChar == '_' ||
+ ((_cChar >= '0' && _cChar <= '9')) ||
+ ((_cChar >= 'a' && _cChar <= 'z'))
+ );
}
//------------------------------------------------------------------
sal_Bool OSQLNameChecker::checkString( const ::rtl::OUString& _sOldValue,
diff --git a/dbaccess/source/sdbtools/connection/objectnames.cxx b/dbaccess/source/sdbtools/connection/objectnames.cxx
index 923dfdf698b3..10069c4be24c 100644
--- a/dbaccess/source/sdbtools/connection/objectnames.cxx
+++ b/dbaccess/source/sdbtools/connection/objectnames.cxx
@@ -436,10 +436,12 @@ namespace sdbtools
String sBaseName( _BaseName );
if ( sBaseName.Len() == 0 )
+ {
if ( _CommandType == CommandType::TABLE )
sBaseName = String( SdbtRes( STR_BASENAME_TABLE ) );
else
sBaseName = String( SdbtRes( STR_BASENAME_QUERY ) );
+ }
::rtl::OUString sName( sBaseName );
sal_Int32 i = 1;
diff --git a/dbaccess/source/ui/browser/brwctrlr.cxx b/dbaccess/source/ui/browser/brwctrlr.cxx
index 6443b06201c7..679a4d4f20e7 100644
--- a/dbaccess/source/ui/browser/brwctrlr.cxx
+++ b/dbaccess/source/ui/browser/brwctrlr.cxx
@@ -2358,10 +2358,12 @@ IMPL_LINK(SbaXDataBrowserController, OnFoundData, FmFoundRecordInformation*, pIn
{
Reference< XInterface > xCurrent(aColumnControls->getByIndex(nViewPos),UNO_QUERY);
if (IsSearchableControl(xCurrent))
+ {
if (pInfo->nFieldPos)
--pInfo->nFieldPos;
else
break;
+ }
}
Reference< ::com::sun::star::form::XGrid > xGrid(getBrowserView()->getGridControl(), UNO_QUERY);
diff --git a/dbaccess/source/ui/control/SqlNameEdit.cxx b/dbaccess/source/ui/control/SqlNameEdit.cxx
index 0efbbdb61cc0..c8f9a38cf0ac 100644
--- a/dbaccess/source/ui/control/SqlNameEdit.cxx
+++ b/dbaccess/source/ui/control/SqlNameEdit.cxx
@@ -38,12 +38,13 @@ namespace dbaui
//------------------------------------------------------------------
sal_Bool isCharOk(sal_Unicode _cChar,sal_Bool _bFirstChar,sal_Bool _bUpperCase,const ::rtl::OUString& _sAllowedChars)
{
- return (_cChar >= 'A' && _cChar <= 'Z' ||
- _cChar == '_' ||
- _sAllowedChars.indexOf(_cChar) != -1 ||
+ return (
+ (_cChar >= 'A' && _cChar <= 'Z') ||
+ _cChar == '_' ||
+ _sAllowedChars.indexOf(_cChar) != -1 ||
(!_bFirstChar && (_cChar >= '0' && _cChar <= '9')) ||
- (!_bUpperCase && (_cChar >= 'a' && _cChar <= 'z')));
-
+ (!_bUpperCase && (_cChar >= 'a' && _cChar <= 'z'))
+ );
}
//------------------------------------------------------------------
sal_Bool OSQLNameChecker::checkString( const ::rtl::OUString& _sOldValue,
diff --git a/dbaccess/source/ui/misc/UITools.cxx b/dbaccess/source/ui/misc/UITools.cxx
index 9f0f9bd2c85e..47b2a4f2a466 100644
--- a/dbaccess/source/ui/misc/UITools.cxx
+++ b/dbaccess/source/ui/misc/UITools.cxx
@@ -1301,8 +1301,8 @@ void adjustToolBoxSize(ToolBox* _pToolBox)
aSize.Height() = aOldSize.Height();
Size aTbSize = _pToolBox->GetSizePixel();
- if (aSize.Width() && aSize.Width() != aTbSize.Width() ||
- aSize.Height() && aSize.Height() != aTbSize.Height())
+ if ( (aSize.Width() && aSize.Width() != aTbSize.Width()) ||
+ (aSize.Height() && aSize.Height() != aTbSize.Height()) )
{
_pToolBox->SetPosSizePixel( _pToolBox->GetPosPixel(), aSize );
_pToolBox->Invalidate();