summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-09-23 17:06:58 +0200
committerAndras Timar <andras.timar@collabora.com>2014-10-01 16:24:41 +0200
commit54b26b23cef7ae11006244d0d1479c81b99b4619 (patch)
tree8678d9929bfb7478a50c947d054870c48e6cb5b8
parent4e41b9b6e3da0b29f213df7745ac286bcbab6270 (diff)
error C2782: template parameter '_Ty' is ambiguous
Change-Id: Ieb8f91a629b9e14480c0372e747fea326c549833 (cherry picked from commit 02e0bac73be8d11abf539130f3d3541fa72af93a) Signed-off-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--sw/source/core/bastyp/breakit.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/bastyp/breakit.cxx b/sw/source/core/bastyp/breakit.cxx
index 8a4c40e3ee5b..0e3aeea60f62 100644
--- a/sw/source/core/bastyp/breakit.cxx
+++ b/sw/source/core/bastyp/breakit.cxx
@@ -175,7 +175,7 @@ sal_Int32 SwBreakIt::getGraphemeCount(const OUString& rText,
{
sal_Int32 nGraphemeCount = 0;
- sal_Int32 nCurPos = std::max(0, nStart);
+ sal_Int32 nCurPos = std::max(static_cast<sal_Int32>(0), nStart);
while (nCurPos < nEnd)
{
// fdo#49208 cheat and assume that nothing can combine with a space