diff options
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/skia_shared/SkFloatToDecimal.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/third_party/skia_shared/SkFloatToDecimal.cpp b/third_party/skia_shared/SkFloatToDecimal.cpp index 1f99990b8f..ff7d301bf3 100644 --- a/third_party/skia_shared/SkFloatToDecimal.cpp +++ b/third_party/skia_shared/SkFloatToDecimal.cpp @@ -15,8 +15,12 @@ #include <cassert> #define SkASSERT assert +namespace pdfium { +namespace skia { +namespace { + // Return pow(10.0, e), optimized for common cases. -static double pow10(int e) { +double pow10(int e) { switch (e) { case 0: return 1.0; // common cases case 1: return 10.0; @@ -48,8 +52,8 @@ static double pow10(int e) { } } -namespace pdfium { -namespace skia { +} // namespace + /** Write a string into result, includeing a terminating '\0' (for unit testing). Return strlen(result) (for SkWStream::write) The resulting string will be in the form /[-]?([0-9]*.)?[0-9]+/ and |