diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-11-14 13:12:46 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-11-16 22:55:53 +0100 |
commit | 2b8394b36bf1602ca3f33a00dacd18329cc91d2d (patch) | |
tree | 10ea12ab3e990f128f8f971750b009eab28d17fe /editeng/source | |
parent | 0847c140a16ddc2d39ebfbacd432efb50f25d64c (diff) |
cid#1606752 silence Overflowed return value
and
cid#1607158 Overflowed return value
cid#1607271 Overflowed return value
cid#1608107 Overflowed return value
cid#1606975 Overflowed return value
cid#1608009 Overflowed return value
cid#1608353 Overflowed return value
cid#1608486 Overflowed return value
cid#1607009 Overflowed return value
cid#1606780 Overflowed return value
its totally unclear what the source of these warnings is
Change-Id: If46cac6a329dec397bd784f57d9ffe5e53af9a1a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176683
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'editeng/source')
-rw-r--r-- | editeng/source/editeng/impedit.hxx | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx index aa2846126c23..a76d50855d9c 100644 --- a/editeng/source/editeng/impedit.hxx +++ b/editeng/source/editeng/impedit.hxx @@ -228,7 +228,9 @@ public: tools::Long GetVisDocLeft() const { return maVisDocStartPos.X(); } tools::Long GetVisDocTop() const { return maVisDocStartPos.Y(); } + // coverity[ tainted_data_return : FALSE ] version 2023.12.2 tools::Long GetVisDocRight() const { return maVisDocStartPos.X() + (!IsVertical() ? maOutArea.GetWidth() : maOutArea.GetHeight()); } + // coverity[ tainted_data_return : FALSE ] version 2023.12.2 tools::Long GetVisDocBottom() const { return maVisDocStartPos.Y() + (!IsVertical() ? maOutArea.GetHeight() : maOutArea.GetWidth()); } tools::Rectangle GetVisDocArea() const; @@ -387,14 +389,10 @@ public: tools::Long GetVisDocLeft() const { return maVisDocStartPos.X(); } tools::Long GetVisDocTop() const { return maVisDocStartPos.Y(); } - tools::Long GetVisDocRight() const - { - return maVisDocStartPos.X() + ( !IsVertical() ? maOutputArea.GetWidth() : maOutputArea.GetHeight() ); - } - tools::Long GetVisDocBottom() const - { - return maVisDocStartPos.Y() + ( !IsVertical() ? maOutputArea.GetHeight() : maOutputArea.GetWidth() ); - } + // coverity[ tainted_data_return : FALSE ] version 2023.12.2 + tools::Long GetVisDocRight() const { return maVisDocStartPos.X() + ( !IsVertical() ? maOutputArea.GetWidth() : maOutputArea.GetHeight() ); } + // coverity[ tainted_data_return : FALSE ] version 2023.12.2 + tools::Long GetVisDocBottom() const { return maVisDocStartPos.Y() + ( !IsVertical() ? maOutputArea.GetHeight() : maOutputArea.GetWidth() ); } tools::Rectangle GetVisDocArea() const; const EditSelection& GetEditSelection() const { return maEditSelection; } |