summaryrefslogtreecommitdiffstats
path: root/src/lccnvalidator.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:15:24 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:15:24 -0600
commit8d9b90ca794ffabf151719c2edebe9278a2d3f36 (patch)
tree55f446de8694c45be6bf0f1178920c2b92b0c9f5 /src/lccnvalidator.cpp
parent2781e27b871150395a5a82e221684108641002b2 (diff)
downloadtellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.tar.gz
tellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.zip
Rename old tq methods that no longer need a unique name
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 bde2427..cf0e850 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::tqfromLatin1("[a-z ]{0,3}"
+ TQRegExp rx(TQString::fromLatin1("[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::tqfromLatin1("20"))) {
+ if(afterAlpha.startsWith(TQString::fromLatin1("20"))) {
year = afterAlpha.left(4);
serial = afterAlpha.mid(4);
} else {