sc/source/ui/view/editsh.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit cac1123cb9d847da7a04384320f34fa03e3e21ff Author: Eike Rathke <er...@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 (cherry picked from commit 0b3c6203f87f72684ad018963674a10e1c6f7c36) diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx index a7fe53c..9a36bbc 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); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits