diff options
author | Noel Grandin <noel@peralex.com> | 2013-10-28 12:21:40 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-06 08:51:22 +0200 |
commit | 296329a926877d069f55364a177d734f385ce7ae (patch) | |
tree | d95dff15946339b5a2df8c7c29159b97137ee30e /dbaccess | |
parent | ebeff1814cbecfba9bbeaeba8067b58f71703a39 (diff) |
convert xub_StrLen to sal_Int32
convert for loops using xub_StrLen to use sal_Int32
Change-Id: I5f635ca078966fefe938dbc7e8dea7c8d0d0b554
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/dlg/queryfilter.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/TokenWriter.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/dbaccess/source/ui/dlg/queryfilter.cxx b/dbaccess/source/ui/dlg/queryfilter.cxx index e624cbbcef67..47a81a314872 100644 --- a/dbaccess/source/ui/dlg/queryfilter.cxx +++ b/dbaccess/source/ui/dlg/queryfilter.cxx @@ -717,7 +717,7 @@ IMPL_LINK( DlgFilterCrit, ListSelectHdl, ListBox *, pListBox ) } else if(eColumnSearch == ColumnSearch::CHAR) { - for(xub_StrLen i=6;i<10;i++) + for(sal_Int32 i=6; i<10; i++) pComp->InsertEntry(aSTR_COMPARE_OPERATORS.getToken(i, ';')); } else if(eColumnSearch == ColumnSearch::BASIC) diff --git a/dbaccess/source/ui/misc/TokenWriter.cxx b/dbaccess/source/ui/misc/TokenWriter.cxx index 1e4895f90748..c58e9cd5c8a6 100644 --- a/dbaccess/source/ui/misc/TokenWriter.cxx +++ b/dbaccess/source/ui/misc/TokenWriter.cxx @@ -107,7 +107,7 @@ ODatabaseImportExport::ODatabaseImportExport(const ::svx::ODataAccessDescriptor& if( nCount > SBA_FORMAT_SELECTION_COUNT && !rExchange.getToken(4, ';').isEmpty()) { m_pRowMarker = new sal_Int32[nCount-SBA_FORMAT_SELECTION_COUNT]; - for(xub_StrLen i=SBA_FORMAT_SELECTION_COUNT;i<nCount;++i) + for(sal_Int32 i=SBA_FORMAT_SELECTION_COUNT; i<nCount; ++i) m_pRowMarker[i-SBA_FORMAT_SELECTION_COUNT] = rExchange.getToken(i,char(11)).toInt32(); } osl_atomic_decrement( &m_refCount ); diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx index 1b45eac413b2..b4b9d5fc931c 100644 --- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx +++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx @@ -202,7 +202,7 @@ void OSelectionBrowseBox::initialize() if ( lcl_SupportsCoreSQLGrammar(xConnection) ) { sal_Int32 nCount = comphelper::string::getTokenCount(m_aFunctionStrings, ';'); - for (xub_StrLen nIdx = 0; nIdx < nCount; nIdx++) + for( sal_Int32 nIdx = 0; nIdx < nCount; nIdx++ ) m_pFunctionCell->InsertEntry(m_aFunctionStrings.getToken(nIdx, ';')); } else // else only COUNT(*) and COUNT("table".*) @@ -2260,9 +2260,9 @@ sal_Bool OSelectionBrowseBox::GetFunctionName(sal_uInt32 _nFunctionTokenId, OUSt break; default: { - xub_StrLen nCount = comphelper::string::getTokenCount(m_aFunctionStrings, ';'); - xub_StrLen i; - for ( i = 0; i < nCount-1; i++) // grouping is not counted + sal_Int32 nCount = comphelper::string::getTokenCount(m_aFunctionStrings, ';'); + sal_Int32 i; + for( i = 0; i < nCount-1; i++ ) // grouping is not counted { if(rFkt.equalsIgnoreAsciiCase(m_aFunctionStrings.getToken(i, ';'))) { @@ -2707,7 +2707,7 @@ void OSelectionBrowseBox::setFunctionCell(OTableFieldDescRef& _pEntry) xub_StrLen nCount = comphelper::string::getTokenCount(m_aFunctionStrings, ';'); if ( _pEntry->isNumeric() ) --nCount; - for (xub_StrLen nIdx = 1; nIdx < nCount; nIdx++) + for( sal_Int32 nIdx = 1; nIdx < nCount; nIdx++ ) m_pFunctionCell->InsertEntry(m_aFunctionStrings.getToken(nIdx, ';')); } |