summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/querydesign
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-10-28 13:20:52 +0200
committerNoel Grandin <noel@peralex.com>2013-11-05 13:18:14 +0200
commit3d65dfa3c98e0f79c579cfac23d55092f7554244 (patch)
tree492c438c7af8dc56240add22d259945b67ea130a /dbaccess/source/ui/querydesign
parent9802db7ff181a9c4d15cc453725b63b82a941fff (diff)
convert xub_StrLen to sal_Int32
Converts code that calls comphelper::string::getTokenCount() to use sal_Int32 to store the return value. Change-Id: I439605a39d29b1309649e30f3ff40dfa412efcde
Diffstat (limited to 'dbaccess/source/ui/querydesign')
-rw-r--r--dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
index 78f5f7e72d48..1b45eac413b2 100644
--- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
+++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
@@ -69,7 +69,7 @@ namespace
if ( !bAsterix )
{
OUString sName = _sFieldName;
- xub_StrLen nTokenCount = comphelper::string::getTokenCount(sName, '.');
+ sal_Int32 nTokenCount = comphelper::string::getTokenCount(sName, '.');
if ( (nTokenCount == 2 && sName.getToken(1,'.')[0] == '*' )
|| (nTokenCount == 3 && sName.getToken(2,'.')[0] == '*' ) )
{
@@ -139,9 +139,8 @@ OSelectionBrowseBox::OSelectionBrowseBox( Window* pParent )
SetTitleFont(aTitleFont);
OUString aTxt(ModuleRes(STR_QUERY_SORTTEXT));
- xub_StrLen nCount = comphelper::string::getTokenCount(aTxt, ';');
- xub_StrLen nIdx = 0;
- for (; nIdx < nCount; nIdx++)
+ sal_Int32 nCount = comphelper::string::getTokenCount(aTxt, ';');
+ for (sal_Int32 nIdx = 0; nIdx < nCount; nIdx++)
m_pOrderCell->InsertEntry(aTxt.getToken(nIdx, ';'));
for(long i=0;i < BROW_ROW_CNT;i++)
@@ -202,7 +201,7 @@ void OSelectionBrowseBox::initialize()
// We slip in a few optionals one, too.
if ( lcl_SupportsCoreSQLGrammar(xConnection) )
{
- xub_StrLen nCount = comphelper::string::getTokenCount(m_aFunctionStrings, ';');
+ sal_Int32 nCount = comphelper::string::getTokenCount(m_aFunctionStrings, ';');
for (xub_StrLen nIdx = 0; nIdx < nCount; nIdx++)
m_pFunctionCell->InsertEntry(m_aFunctionStrings.getToken(nIdx, ';'));
}