diff options
| author | Campbell Barton <ideasman42@gmail.com> | 2012-10-04 01:47:32 +0000 |
|---|---|---|
| committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-04 01:47:32 +0000 |
| commit | 864134765a33823e2040c012ec383bebd7dd5743 (patch) | |
| tree | c96543a601418602694e3222b11151264e52d96a /src/io/ftos.cpp | |
| parent | code cleanup: add own includes to cpp files or make the functions static if t... (diff) | |
| download | inkscape-864134765a33823e2040c012ec383bebd7dd5743.tar.gz inkscape-864134765a33823e2040c012ec383bebd7dd5743.zip | |
code cleanup: make more functions static or include their own headers.
(bzr r11736)
Diffstat (limited to 'src/io/ftos.cpp')
| -rw-r--r-- | src/io/ftos.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/io/ftos.cpp b/src/io/ftos.cpp index 658c768e8..d0764d86c 100644 --- a/src/io/ftos.cpp +++ b/src/io/ftos.cpp @@ -172,7 +172,7 @@ using namespace std; // This routine counts from the end of a string like '10229000' to find the index // of the first non-'0' character (5 would be returned for the above number.) -int countDigs(char *p) +static int countDigs(char *p) { int length =0; while (*(p+length)!='\0') length++; // Count total length @@ -186,7 +186,7 @@ int countDigs(char *p) // is between 0 and 1. Returns 1 if v==0. Return value is positive for numbers // greater than or equal to 1, negative for numbers less than 0.1, and zero for // numbers between 0.1 and 1. -int countLhsDigits(double v) +static int countLhsDigits(double v) { if (v<0) v = -v; // Take abs value else if (v==0) return 1; // Special case if v==0 |
