[Libreoffice-commits] core.git: writerfilter/source
Miklos Vajna
vmiklos at suse.cz
Sat Aug 31 11:01:44 PDT 2013
writerfilter/source/resourcemodel/Fraction.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 0f32a95d0af6a19c80f9b7e14fab8753067d3ddf
Author: Miklos Vajna <vmiklos at suse.cz>
Date: Sat Aug 31 19:53:51 2013 +0200
writerfilter: mark these as static
Change-Id: I240b95e09d3555c0fdcdf6c4b9eb458ad82460e4
diff --git a/writerfilter/source/resourcemodel/Fraction.cxx b/writerfilter/source/resourcemodel/Fraction.cxx
index 762b9af..1f24bb3 100644
--- a/writerfilter/source/resourcemodel/Fraction.cxx
+++ b/writerfilter/source/resourcemodel/Fraction.cxx
@@ -24,7 +24,7 @@ namespace resourcemodel {
// Stein's binary GCD for non-negative integers
// https://en.wikipedia.org/wiki/Binary_GCD_algorithm
-sal_uInt32 gcd(sal_uInt32 a, sal_uInt32 b)
+static sal_uInt32 gcd(sal_uInt32 a, sal_uInt32 b)
{
if (a == 0 || b == 0)
return a | b;
@@ -63,7 +63,7 @@ sal_uInt32 gcd(sal_uInt32 a, sal_uInt32 b)
return a << nShift;
}
-sal_uInt32 lcm(sal_Int32 a, sal_Int32 b)
+static sal_uInt32 lcm(sal_Int32 a, sal_Int32 b)
{
return abs(a * b) / gcd(abs(a), abs(b));
}
More information about the Libreoffice-commits
mailing list