summaryrefslogtreecommitdiff
path: root/cui/source/options/optinet2.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:26:08 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:26:08 +0100
commitf6e256c4825a6d7c9d7125a4100c10f8c4de750a (patch)
treeafb3e2979708a202ea2a833cf47a978d35faeae4 /cui/source/options/optinet2.cxx
parentd597bb77b271a0e9f2c3f4789517435f6b63f170 (diff)
More loplugin:cstylecast: cui
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I04b0e0c0268cbcc1c7e7ff2174c5125785e09a07
Diffstat (limited to 'cui/source/options/optinet2.cxx')
-rw-r--r--cui/source/options/optinet2.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/options/optinet2.cxx b/cui/source/options/optinet2.cxx
index 66c75166f03e..4a2064101141 100644
--- a/cui/source/options/optinet2.cxx
+++ b/cui/source/options/optinet2.cxx
@@ -130,7 +130,7 @@ void SvxNoSpaceEdit::Modify()
{
OUString aValue = GetText();
- if ( !comphelper::string::isdigitAsciiString(aValue) || (long)aValue.toInt32() > USHRT_MAX )
+ if ( !comphelper::string::isdigitAsciiString(aValue) || static_cast<long>(aValue.toInt32()) > USHRT_MAX )
// the maximum value of a port number is USHRT_MAX
ScopedVclPtrInstance<MessageDialog>(this, CuiResId( RID_SVXSTR_OPT_PROXYPORTS))->Execute();
}
@@ -529,7 +529,7 @@ IMPL_STATIC_LINK( SvxProxyTabPage, LoseFocusHdl_Impl, Control&, rControl, void )
Edit* pEdit = static_cast<Edit*>(&rControl);
OUString aValue = pEdit->GetText();
- if ( !comphelper::string::isdigitAsciiString(aValue) || (long)aValue.toInt32() > USHRT_MAX )
+ if ( !comphelper::string::isdigitAsciiString(aValue) || static_cast<long>(aValue.toInt32()) > USHRT_MAX )
pEdit->SetText( OUString('0') );
}