summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-29 20:51:12 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-30 12:36:41 +0200
commit90e4ea2489918f391953dd3405174ea7a1013ef8 (patch)
treeaa0f66423b54a48d32626e5c3bf579133a77ebfe /dbaccess
parent14d846655766e4bf4498482b2c7710170b052f94 (diff)
cid#1606837 silence Overflowed constant
Change-Id: I73b29037344056c8649214d110859bbb705e628e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172636 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
index ea92978fd4a6..befb38b6812d 100644
--- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
+++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx
@@ -1506,7 +1506,9 @@ void OSelectionBrowseBox::InsertColumn(const OTableFieldDescRef& pEntry, sal_uIn
getFields().size());
}
else
- ++_nColumnPosition; // within the list
+ {
+ _nColumnPosition = static_cast<sal_uInt16>(_nColumnPosition + 1); // within the list
+ }
nColumnId = GetColumnId(_nColumnPosition);
pEntry->SetColumnId( nColumnId );
getFields()[ _nColumnPosition - 1] = pEntry;