diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2014-09-07 09:05:08 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-09-07 02:37:04 -0500 |
commit | aa454b228cb96920d63456be4f920aca1fe3b60e (patch) | |
tree | 3e29126aa02a24f92865b55fe43bf23ee4a5d96c /sw | |
parent | dd2abe04a8891bfc5e1b8bad87af60cf4c012010 (diff) |
AUTH_FIELD_END looks like it is made for this
avoids mucking with casts and allows more accurate typing
Change-Id: I968a2f7fcfa5534947102918125b095ca3b4a66c
Reviewed-on: https://gerrit.libreoffice.org/11313
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/tox/tox.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/tox/tox.cxx b/sw/source/core/tox/tox.cxx index 98f7599933e4..07b833329af1 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, - nTypeId == AUTH_TYPE_WWW ? static_cast<sal_uInt16>(AUTH_FIELD_URL) : SAL_MAX_UINT16 + nTypeId == AUTH_TYPE_WWW ? AUTH_FIELD_URL : AUTH_FIELD_END }; for(size_t i = 0; i < SAL_N_ELEMENTS(nVals); ++i) { - if(nVals[i] == SAL_MAX_UINT16) + if(nVals[i] == AUTH_FIELD_END) break; if( i > 0 ) rAuthTokens.push_back( aTextToken ); |