[Libreoffice-commits] core.git: sw/source

Matteo Casalin matteo.casalin at yahoo.com
Sat Sep 6 05:28:47 PDT 2014


 sw/source/core/tox/tox.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f4b91fc7230124120cf47f75c5197c5bd0c29c7f
Author: Matteo Casalin <matteo.casalin at yahoo.com>
Date:   Sat Sep 6 14:27:59 2014 +0200

    Fix build: narrowing cast
    
    Change-Id: Iebcc89019dc5c482ab00743071002e2983e65469

diff --git a/sw/source/core/tox/tox.cxx b/sw/source/core/tox/tox.cxx
index f0a2459..3e7ac46 100644
--- a/sw/source/core/tox/tox.cxx
+++ b/sw/source/core/tox/tox.cxx
@@ -70,7 +70,7 @@ static void lcl_FillAuthPattern(SwFormTokens &rAuthTokens, sal_uInt16 nTypeId)
         AUTH_FIELD_AUTHOR,
         AUTH_FIELD_TITLE,
         AUTH_FIELD_YEAR,
-        nTypeId == AUTH_TYPE_WWW ? AUTH_FIELD_URL : USHRT_MAX
+        static_cast<sal_uInt16>(nTypeId == AUTH_TYPE_WWW ? AUTH_FIELD_URL : USHRT_MAX)
     };
 
     for(size_t i = 0; i < SAL_N_ELEMENTS(nVals); ++i)


More information about the Libreoffice-commits mailing list