summaryrefslogtreecommitdiff
path: root/sw/source/core/tox
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2014-09-07 08:53:24 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2014-09-07 08:53:24 +0200
commitdd2abe04a8891bfc5e1b8bad87af60cf4c012010 (patch)
tree6bdb13d8afc31f377c2e3ac12698d148ffca8fd5 /sw/source/core/tox
parent40f164a2b86b8f266f1a47130baec09f95d3c56f (diff)
push explicit cast to minimal expression
Change-Id: I33879aa7724703745728128e59735e5d16aa2a57
Diffstat (limited to 'sw/source/core/tox')
-rw-r--r--sw/source/core/tox/tox.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/tox/tox.cxx b/sw/source/core/tox/tox.cxx
index 3e7ac463d7f1..98f7599933e4 100644
--- a/sw/source/core/tox/tox.cxx
+++ b/sw/source/core/tox/tox.cxx
@@ -70,12 +70,12 @@ static void lcl_FillAuthPattern(SwFormTokens &rAuthTokens, sal_uInt16 nTypeId)
AUTH_FIELD_AUTHOR,
AUTH_FIELD_TITLE,
AUTH_FIELD_YEAR,
- static_cast<sal_uInt16>(nTypeId == AUTH_TYPE_WWW ? AUTH_FIELD_URL : USHRT_MAX)
+ nTypeId == AUTH_TYPE_WWW ? static_cast<sal_uInt16>(AUTH_FIELD_URL) : SAL_MAX_UINT16
};
for(size_t i = 0; i < SAL_N_ELEMENTS(nVals); ++i)
{
- if(nVals[i] == USHRT_MAX)
+ if(nVals[i] == SAL_MAX_UINT16)
break;
if( i > 0 )
rAuthTokens.push_back( aTextToken );