Kaydet (Commit) 0b3c6203 authored tarafından Eike Rathke's avatar Eike Rathke

give MSVC a hint to not break the build, fdo#74042 related

... and be explicit about std::min() types.

Change-Id: I6a0dd499d1a29d389ee9da31b71639e3c7c1a6ae
üst f71dc0ec
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment