diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-01-18 21:28:02 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-01-19 21:51:31 +0100 |
commit | f69e2f739ca3c23c9de055c8600c867e864cd4ff (patch) | |
tree | 53f38a54b25dc88933b07f58b5e45ff9b5b3f6f2 /include | |
parent | 25d159dd764d917a04e46819bb8efcc2a6067cd6 (diff) |
ofz#5475 Integer-overflow
Change-Id: I11d706c544698d57b75231e33e3d49f1ac1d4d73
Reviewed-on: https://gerrit.libreoffice.org/48159
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/tools/gen.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/tools/gen.hxx b/include/tools/gen.hxx index 1f72a32078bb..a10b74e03b0b 100644 --- a/include/tools/gen.hxx +++ b/include/tools/gen.hxx @@ -430,6 +430,10 @@ public: inline void expand(long nExpandBy); inline void shrink(long nShrinkBy); + /** + * Sanitizing variants for handling data from the outside + */ + void SaturatingSetSize(const Size& rSize); private: long nLeft; long nTop; |