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

New commits:
commit f4b91fc7230124120cf47f75c5197c5bd0c29c7f
Author: Matteo Casalin <matteo.casa...@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)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to