[Libreoffice-commits] core.git: include/tools
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jul 6 09:36:14 UTC 2021
include/tools/fract.hxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 5f843dc41e42aaac362b0dc82a8344fba120e086
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Tue Jul 6 08:57:55 2021 +0200
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Tue Jul 6 11:35:39 2021 +0200
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 at collabora.com>
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
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;
More information about the Libreoffice-commits
mailing list