summaryrefslogtreecommitdiffstats
path: root/src/upcvalidator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/upcvalidator.cpp')
-rw-r--r--src/upcvalidator.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/upcvalidator.cpp b/src/upcvalidator.cpp
index fb2bd87..73cc0d6 100644
--- a/src/upcvalidator.cpp
+++ b/src/upcvalidator.cpp
@@ -46,7 +46,7 @@ TQValidator::State UPCValidator::validate(TQString& input_, int& pos_) const {
}
// once it gets converted to an ISBN, remember that, and use it for later
- if(input_.startsWith(TQString::tqfromLatin1("978")) || input_.startsWith(TQString::tqfromLatin1("979"))) {
+ if(input_.startsWith(TQString::fromLatin1("978")) || input_.startsWith(TQString::fromLatin1("979"))) {
ISBNValidator val(0);
TQValidator::State s = val.validate(input_, pos_);
if(s == TQValidator::Acceptable) {
@@ -77,7 +77,7 @@ void UPCValidator::fixup(TQString& input_) const {
}
const uint len = input_.length();
- if(len > 12 && (input_.startsWith(TQString::tqfromLatin1("978")) || input_.startsWith(TQString::tqfromLatin1("979")))) {
+ if(len > 12 && (input_.startsWith(TQString::fromLatin1("978")) || input_.startsWith(TQString::fromLatin1("979")))) {
TQString s = input_;
ISBNValidator val(0);
int p = 0;
@@ -95,7 +95,7 @@ TQValidator::State UPCValidator::decodeCat(TQString& input_) const {
if(input_.length() < 3) {
return Intermediate;
}
- if(!input_.startsWith(TQString::tqfromLatin1(".C3"))) { // all cuecat codes start with .C3
+ if(!input_.startsWith(TQString::fromLatin1(".C3"))) { // all cuecat codes start with .C3
return Invalid;
}
const int periods = input_.contains('.');
@@ -119,7 +119,7 @@ TQValidator::State UPCValidator::decodeCat(TQString& input_) const {
}
}
- code = TQString::tqfromLatin1(KCodecs::base64Decode(TQCString(code.latin1())));
+ code = TQString::fromLatin1(KCodecs::base64Decode(TQCString(code.latin1())));
for(uint i = 0; i < code.length(); ++i) {
char c = code[i].latin1() ^ 'C';