diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-22 12:54:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-22 16:45:11 +0100 |
commit | 73ffc462b9b7b1e48470c17d6fbffda66be76e67 (patch) | |
tree | b8a1917508d9af9b0a975b660fbe852281dd9f84 /include/basegfx | |
parent | d7f3eed145fa8220bb34de1f21403d80b2b3f5ae (diff) |
coverity#1326120 try and silence Constant expression result
Change-Id: Iafd034dd51135ad99f56279ceee1c770f91436b0
Diffstat (limited to 'include/basegfx')
-rw-r--r-- | include/basegfx/numeric/ftools.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/basegfx/numeric/ftools.hxx b/include/basegfx/numeric/ftools.hxx index b4ae0a484bd8..35a1a35111b2 100644 --- a/include/basegfx/numeric/ftools.hxx +++ b/include/basegfx/numeric/ftools.hxx @@ -196,6 +196,12 @@ namespace basegfx { return (rfValA > rfValB || equal(rfValA, rfValB)); } + + static bool betweenOrEqualEither(const double& rfValA, const double& rfValB, const double& rfValC) + { + return (rfValA > rfValB && rfValA < rfValC) || equal(rfValA, rfValB) || equal(rfValA, rfValC); + } + }; } // end of namespace basegfx |