[Libreoffice-commits] .: l10ntools/source

Michael Meeks michael at kemper.freedesktop.org
Wed Jul 11 04:13:37 PDT 2012


 l10ntools/source/helper.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cc632da72ba7fe7e7f14b55e72a501afe930b329
Author: Michael Meeks <michael.meeks at suse.com>
Date:   Wed Jul 11 12:10:56 2012 +0100

    fix std::max mismatched type compile snafu
    
    Change-Id: Ia6572f8c648168053ae327fa995fc4f33029ab33

diff --git a/l10ntools/source/helper.hxx b/l10ntools/source/helper.hxx
index ee03eda..cc33b71 100644
--- a/l10ntools/source/helper.hxx
+++ b/l10ntools/source/helper.hxx
@@ -103,7 +103,7 @@ inline sal_Int32 indexOfAnyAsciiL(
 template< typename T > inline T abbreviate(
     T const & text, sal_Int32 start, sal_Int32 length)
 {
-    start = std::max(0, start);
+    start = std::max(sal_Int32(0), start);
     assert(start <= text.getLength());
     return text.copy(start, std::min(text.getLength() - start, length));
 }


More information about the Libreoffice-commits mailing list