From 0f32a95d0af6a19c80f9b7e14fab8753067d3ddf Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Sat, 31 Aug 2013 19:53:51 +0200 Subject: writerfilter: mark these as static Change-Id: I240b95e09d3555c0fdcdf6c4b9eb458ad82460e4 --- writerfilter/source/resourcemodel/Fraction.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'writerfilter') diff --git a/writerfilter/source/resourcemodel/Fraction.cxx b/writerfilter/source/resourcemodel/Fraction.cxx index 762b9afed8e6..1f24bb3e5b51 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)); } -- cgit