diff options
author | Eike Rathke <erack@redhat.com> | 2014-01-28 16:59:22 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-01-28 17:02:13 +0100 |
commit | 0b3c6203f87f72684ad018963674a10e1c6f7c36 (patch) | |
tree | 5539861f40260d9e345facf919762bdd20b344d2 | |
parent | f71dc0ec8372208318199ede36bc93de38d6c216 (diff) |
give MSVC a hint to not break the build, fdo#74042 related
... and be explicit about std::min() types.
Change-Id: I6a0dd499d1a29d389ee9da31b71639e3c7c1a6ae
-rw-r--r-- | sc/source/ui/view/editsh.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx index 5dceae777aee..52e603cb32c7 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); |