summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-03-22 18:28:14 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-03-24 23:22:09 +0100
commit009799fda59e6320d9e8c5b9381232bc2e3dc2b4 (patch)
tree843b2e0c3702fcfffbd10874dd996880c7f691a5 /sw
parentc373dc5d6c45cf9d04b079dfbc26820547031d57 (diff)
sal_uInt16 to sal_Int32
Change-Id: I9d92d5866be5f579a2d645d9039f9fb939e6e61e
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/misc/glossary.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx
index bcae7a59b8cc..87e11099f8c3 100644
--- a/sw/source/ui/misc/glossary.cxx
+++ b/sw/source/ui/misc/glossary.cxx
@@ -594,9 +594,9 @@ IMPL_LINK_NOARG(SwGlossaryDlg, BibHdl)
//check if at least one glossary path is write enabled
SvtPathOptions aPathOpt;
const OUString sGlosPath( aPathOpt.GetAutoTextPath() );
- sal_uInt16 nPaths = comphelper::string::getTokenCount(sGlosPath, ';');
+ const sal_Int32 nPaths = comphelper::string::getTokenCount(sGlosPath, ';');
bool bIsWritable = false;
- for(sal_uInt16 nPath = 0; nPath < nPaths; nPath++)
+ for(sal_Int32 nPath = 0; nPath < nPaths; nPath++)
{
const OUString sPath = URIHelper::SmartRel2Abs(
INetURLObject(), sGlosPath.getToken(nPath, ';'),
@@ -670,7 +670,7 @@ void SwGlossaryDlg::Init()
const sal_uInt16 nCnt = pGlossaryHdl->GetGroupCnt();
SvTreeListEntry* pSelEntry = 0;
const OUString sSelStr(::GetCurrGlosGroup().getToken(0, GLOS_DELIM));
- const sal_uInt16 nSelPath = static_cast< sal_uInt16 >(::GetCurrGlosGroup().getToken(1, GLOS_DELIM).toInt32());
+ const sal_Int32 nSelPath = ::GetCurrGlosGroup().getToken(1, GLOS_DELIM).toInt32();
// #i66304# - "My AutoText" comes from mytexts.bau, but should be translated
const OUString sMyAutoTextEnglish("My AutoText");
const OUString sMyAutoTextTranslated(SW_RES(STR_MY_AUTOTEXT));
@@ -685,11 +685,11 @@ void SwGlossaryDlg::Init()
if(sTitle == sMyAutoTextEnglish)
sTitle = sMyAutoTextTranslated;
SvTreeListEntry* pEntry = m_pCategoryBox->InsertEntry( sTitle );
- sal_uInt16 nPath = static_cast< sal_uInt16 >(sGroupName.getToken( 1, GLOS_DELIM ).toInt32());
+ const sal_Int32 nPath = sGroupName.getToken( 1, GLOS_DELIM ).toInt32();
GroupUserData* pData = new GroupUserData;
pData->sGroupName = sGroupName.getToken(0, GLOS_DELIM);
- pData->nPathIdx = nPath;
+ pData->nPathIdx = static_cast< sal_uInt16 >(nPath);
pData->bReadonly = pGlossaryHdl->IsReadOnly(&sGroupName);
pEntry->SetUserData(pData);