summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-22 20:36:24 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-24 10:12:44 +0200
commitc46c109204675d9a04ed16b8c53fdba71519ef4a (patch)
tree434631d5b5a2222a0e3a1883c1c8e5570b567e1c /dbaccess
parentf528d18f99f5d45ccb4ac0beb12045e51fbea477 (diff)
cid#1607535 silence Overflowed constant
and cid#1608504 Overflowed constant cid#1607518 Overflowed constant Change-Id: Ife45a2f414ea703f627b7083d746bc11f6d4f359 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173832 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
index befb38b6812d..b674baa0b916 100644
--- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
+++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
@@ -1618,7 +1618,7 @@ OTableFieldDescRef OSelectionBrowseBox::FindFirstFreeCol(sal_uInt16& _rColumnPos
for (auto const& field : getFields())
{
- ++_rColumnPosition;
+ _rColumnPosition = static_cast<sal_uInt16>(_rColumnPosition + 1);
OTableFieldDescRef pEntry = field;
if ( pEntry.is() && pEntry->IsEmpty() )
return pEntry;