summaryrefslogtreecommitdiffstats
path: root/src/lccnvalidator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lccnvalidator.cpp')
-rw-r--r--src/lccnvalidator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lccnvalidator.cpp b/src/lccnvalidator.cpp
index cf0e850..bde2427 100644
--- a/src/lccnvalidator.cpp
+++ b/src/lccnvalidator.cpp
@@ -17,7 +17,7 @@
using Tellico::LCCNValidator;
LCCNValidator::LCCNValidator(TQObject* parent_) : TQRegExpValidator(parent_) {
- TQRegExp rx(TQString::fromLatin1("[a-z ]{0,3}"
+ TQRegExp rx(TQString::tqfromLatin1("[a-z ]{0,3}"
"("
"\\d{2}-?\\d{1,6}"
"|"
@@ -54,7 +54,7 @@ TQString LCCNValidator::formalize(const TQString& value_) {
// or from any year after 2100. Reasonable, right?
// so if the string starts with '20' we take the first 4 digits as the year
// otherwise the first 2
- if(afterAlpha.startsWith(TQString::fromLatin1("20"))) {
+ if(afterAlpha.startsWith(TQString::tqfromLatin1("20"))) {
year = afterAlpha.left(4);
serial = afterAlpha.mid(4);
} else {