diff options
author | Timothy Pearson <[email protected]> | 2013-02-01 08:03:36 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-01 08:03:36 -0600 |
commit | 0dda6e85e171acf1a73dc8d3d1f67b4fcc9b1ae7 (patch) | |
tree | b55740ff9d132b25792ca3fd60e37497402b5036 /kspread/valueparser.cc | |
parent | ac04782336b6a026b44df9d51ba9ca008a712da2 (diff) | |
download | koffice-0dda6e85e171acf1a73dc8d3d1f67b4fcc9b1ae7.tar.gz koffice-0dda6e85e171acf1a73dc8d3d1f67b4fcc9b1ae7.zip |
Rename KLocale to enhance compatibility with KDE4
Diffstat (limited to 'kspread/valueparser.cc')
-rw-r--r-- | kspread/valueparser.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kspread/valueparser.cc b/kspread/valueparser.cc index ff5b4b8c..08ebe628 100644 --- a/kspread/valueparser.cc +++ b/kspread/valueparser.cc @@ -27,11 +27,11 @@ using namespace KSpread; -ValueParser::ValueParser( KLocale* locale ) : parserLocale( locale ) +ValueParser::ValueParser( TDELocale* locale ) : parserLocale( locale ) { } -KLocale* ValueParser::locale() +TDELocale* ValueParser::locale() { return parserLocale; } @@ -364,7 +364,7 @@ Value ValueParser::tryParseDate (const TQString& str, bool *ok) { // Note: if shortdate format only specifies 2 digits year, then 3/4/1955 // will be treated as in year 3055, while 3/4/55 as year 2055 - // (because 55 < 69, see KLocale) and thus there's no way to enter for + // (because 55 < 69, see TDELocale) and thus there's no way to enter for // year 1995 // The following fixes the problem, 3/4/1955 will always be 1955 @@ -374,11 +374,11 @@ Value ValueParser::tryParseDate (const TQString& str, bool *ok) tmpDate = tmpDate.addYears( -1900 ); // this is another HACK ! - // with two digit years, 0-69 is treated as year 2000-2069 (see KLocale) + // with two digit years, 0-69 is treated as year 2000-2069 (see TDELocale) // however, in Excel only 0-29 is year 2000-2029, 30 or later is 1930 // onwards - // the following provides workaround for KLocale so we're compatible + // the following provides workaround for TDELocale so we're compatible // with Excel // (e.g 3/4/45 is Mar 4, 1945 not Mar 4, 2045) if( ( tmpDate.year() >= 2030 ) && ( tmpDate.year() <= 2069 ) ) |