summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/ui/shells/annotsh.cxx2
-rw-r--r--sw/source/ui/shells/drwtxtex.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/shells/annotsh.cxx b/sw/source/ui/shells/annotsh.cxx
index d80109c30352..0eca661beec1 100644
--- a/sw/source/ui/shells/annotsh.cxx
+++ b/sw/source/ui/shells/annotsh.cxx
@@ -1050,7 +1050,7 @@ void SwAnnotationShell::StateInsert(SfxItemSet &rSet)
else
{
OUString sSel(pOLV->GetSelected());
- sSel = sSel.copy(0, std::min(255, sSel.getLength()));
+ sSel = sSel.copy(0, std::min(static_cast<sal_Int32>(255), sSel.getLength()));
aHLinkItem.SetName(comphelper::string::stripEnd(sSel, ' '));
}
diff --git a/sw/source/ui/shells/drwtxtex.cxx b/sw/source/ui/shells/drwtxtex.cxx
index c30db2c2c476..4c5e9e77b978 100644
--- a/sw/source/ui/shells/drwtxtex.cxx
+++ b/sw/source/ui/shells/drwtxtex.cxx
@@ -1013,7 +1013,7 @@ void SwDrawTextShell::StateInsert(SfxItemSet &rSet)
else
{
OUString sSel(pOLV->GetSelected());
- sSel = sSel.copy(0, std::min(255, sSel.getLength()));
+ sSel = sSel.copy(0, std::min(static_cast<sal_Int32>(255), sSel.getLength()));
aHLinkItem.SetName(comphelper::string::stripEnd(sSel, ' '));
}