summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/tabledesign/TEditControl.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:25:56 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:25:56 +0100
commitd597bb77b271a0e9f2c3f4789517435f6b63f170 (patch)
treececc96dcd43d96a3a56b9ec28d55a2f844af0476 /dbaccess/source/ui/tabledesign/TEditControl.cxx
parent029149e9b7aa8ad66dca2972e26385c831153c80 (diff)
More loplugin:cstylecast: dbaccess
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: I96df8923f7791288bbd350d75582a9220006ece6
Diffstat (limited to 'dbaccess/source/ui/tabledesign/TEditControl.cxx')
-rw-r--r--dbaccess/source/ui/tabledesign/TEditControl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/tabledesign/TEditControl.cxx b/dbaccess/source/ui/tabledesign/TEditControl.cxx
index 65be68236e2d..1126b11fe4be 100644
--- a/dbaccess/source/ui/tabledesign/TEditControl.cxx
+++ b/dbaccess/source/ui/tabledesign/TEditControl.cxx
@@ -286,8 +286,8 @@ bool OTableEditorCtrl::SetDataPtr( long nRow )
if(nRow == -1)
return false;
- OSL_ENSURE(nRow < (long)m_pRowList->size(),"Row is greater than size!");
- if(nRow >= (long)m_pRowList->size())
+ OSL_ENSURE(nRow < static_cast<long>(m_pRowList->size()),"Row is greater than size!");
+ if(nRow >= static_cast<long>(m_pRowList->size()))
return false;
pActRow = (*m_pRowList)[nRow];
return pActRow != nullptr;