include/tools/fract.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 5f843dc41e42aaac362b0dc82a8344fba120e086 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Tue Jul 6 08:57:55 2021 +0200 Commit: Mike Kaganski <mike.kagan...@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.kagan...@collabora.com> Reviewed-by: Mike Kaganski <mike.kagan...@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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits