summaryrefslogtreecommitdiffstats
path: root/src/gui/general/PresetGroup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/general/PresetGroup.cpp')
-rw-r--r--src/gui/general/PresetGroup.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/general/PresetGroup.cpp b/src/gui/general/PresetGroup.cpp
index 729671d..cb8efca 100644
--- a/src/gui/general/PresetGroup.cpp
+++ b/src/gui/general/PresetGroup.cpp
@@ -129,7 +129,7 @@ PresetGroup::startElement(const TQString &, const TQString &,
if (lcName == "category") {
TQString s = attributes.value("name");
- if (s) {
+ if (!s.isNull()) {
m_elCategoryName = s;
// increment the current category number
m_lastCategory = m_currentCategory;
@@ -151,7 +151,7 @@ PresetGroup::startElement(const TQString &, const TQString &,
} else if (lcName == "instrument") {
TQString s = attributes.value("name");
- if (s) {
+ if (!s.isNull()) {
m_elInstrumentName = s;
m_name = true;
@@ -162,13 +162,13 @@ PresetGroup::startElement(const TQString &, const TQString &,
} else if (lcName == "clef") {
TQString s = attributes.value("type");
- if (s) {
+ if (!s.isNull()) {
m_elClef = clefNameToClefIndex(s);
m_clef = true;
}
} else if (lcName == "transpose") {
TQString s = attributes.value("value");
- if (s) {
+ if (!s.isNull()) {
m_elTranspose = s.toInt();
m_transpose = true;
}
@@ -178,13 +178,13 @@ PresetGroup::startElement(const TQString &, const TQString &,
if (s == "amateur") {
s = attributes.value("low");
- if (s) {
+ if (!s.isNull()) {
m_elLowAm = s.toInt();
m_amateur = true;
}
s = attributes.value("high");
- if (s && m_amateur) {
+ if (!s.isNull() && m_amateur) {
m_elHighAm = s.toInt();
} else {
return false;
@@ -192,13 +192,13 @@ PresetGroup::startElement(const TQString &, const TQString &,
} else if (s == "professional") {
s = attributes.value("low");
- if (s) {
+ if (!s.isNull()) {
m_pro = true;
m_elLowPro = s.toInt();
}
s = attributes.value("high");
- if (s && m_pro) {
+ if (!s.isNull() && m_pro) {
m_elHighPro = s.toInt();
} else {
return false;