diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:07:43 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:07:43 +0200 |
commit | 4226e548662339ea1ca37b45385a7cf9b237ff1e (patch) | |
tree | 9a3fa54b85d97f05164e41bdb96b82f748a37342 /shared/globalFunctions.cpp | |
parent | 3.7 (diff) | |
download | FreeFileSync-4226e548662339ea1ca37b45385a7cf9b237ff1e.tar.gz FreeFileSync-4226e548662339ea1ca37b45385a7cf9b237ff1e.tar.bz2 FreeFileSync-4226e548662339ea1ca37b45385a7cf9b237ff1e.zip |
3.8
Diffstat (limited to 'shared/globalFunctions.cpp')
-rw-r--r-- | shared/globalFunctions.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/shared/globalFunctions.cpp b/shared/globalFunctions.cpp index c02a1d77..63831e1a 100644 --- a/shared/globalFunctions.cpp +++ b/shared/globalFunctions.cpp @@ -8,30 +8,9 @@ #include <wx/msgdlg.h> #include <wx/file.h> #include <wx/stopwatch.h> -#include <cmath> #include "systemConstants.h" -int globalFunctions::wxStringToInt(const wxString& number) -{ - long result = 0; - if (number.ToLong(&result)) - return result; - else - return 0; //don't throw exceptions here: wxEmptyString shall be interpreted as 0 -} - - -double globalFunctions::wxStringToDouble(const wxString& number) -{ - double result = 0; - if (number.ToDouble(&result)) - return result; - else - return 0; //don't throw exceptions here: wxEmptyString shall be interpreted as 0 -} - - size_t globalFunctions::getDigitCount(size_t number) //count number of digits { return number == 0 ? 1 : static_cast<size_t>(::log10(static_cast<double>(number))) + 1; |