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

Eike Rathke erack at redhat.com
Tue Jan 28 08:02:33 PST 2014


 sc/source/ui/view/editsh.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0b3c6203f87f72684ad018963674a10e1c6f7c36
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Jan 28 16:59:22 2014 +0100

    give MSVC a hint to not break the build, fdo#74042 related
    
    ... and be explicit about std::min() types.
    
    Change-Id: I6a0dd499d1a29d389ee9da31b71639e3c7c1a6ae

diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx
index 5dceae7..52e603c 100644
--- a/sc/source/ui/view/editsh.cxx
+++ b/sc/source/ui/view/editsh.cxx
@@ -698,7 +698,7 @@ void ScEditShell::GetState( SfxItemSet& rSet )
                     {
                         // use selected text as name for urls
                         OUString sReturn = pActiveView->GetSelected();
-                        sReturn = sReturn.copy(0, std::min(sReturn.getLength(), 255));
+                        sReturn = sReturn.copy(0, std::min(sReturn.getLength(), static_cast<sal_Int32>(255)));
                         aHLinkItem.SetName(comphelper::string::stripEnd(sReturn, ' '));
                     }
                     rSet.Put(aHLinkItem);


More information about the Libreoffice-commits mailing list