summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-07-06 08:57:55 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2021-07-06 11:35:39 +0200
commit5f843dc41e42aaac362b0dc82a8344fba120e086 (patch)
tree839ce8efeaaa2ddc89ec4055ccb5f56977a7772e
parentc18d2b46a37893acb7922c5dc49ddc4631a2c05d (diff)
Explicitly call an operator to avoid a bogus IntelliSense warning
More than one conversion function from "const Fraction" to "sal_Int32" applies: function "Fraction::operator sal_Int32() const" (declared at line 54) function "Fraction::operator tools::Long() const" (declared at line 56)" Change-Id: Id6f72c386d395509d3853ffc8e1a7852cca45e6b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118429 Tested-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r--include/tools/fract.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tools/fract.hxx b/include/tools/fract.hxx
index ab04c39324a4..7f2bb3d320ac 100644
--- a/include/tools/fract.hxx
+++ b/include/tools/fract.hxx
@@ -53,7 +53,7 @@ public:
explicit operator sal_Int32() const;
#if SAL_TYPES_SIZEOFPOINTER == 8
- explicit operator ::tools::Long() const { return sal_Int32(*this); }
+ explicit operator ::tools::Long() const { return operator sal_Int32(); }
#endif
explicit operator double() const;