summaryrefslogtreecommitdiffstats
path: root/src/gui/general/ClefIndex.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-11-26 17:42:48 -0600
committerTimothy Pearson <[email protected]>2011-11-26 17:42:48 -0600
commit4b3c5dd929ea78ca3b6f656a63d70b10d2f43885 (patch)
tree995c0d3e35794c1bb1029d6b7eacdd80827807bd /src/gui/general/ClefIndex.cpp
parent1461610fb35bb0fcee490f274ea84b8ebfeb1566 (diff)
downloadrosegarden-4b3c5dd929ea78ca3b6f656a63d70b10d2f43885.tar.gz
rosegarden-4b3c5dd929ea78ca3b6f656a63d70b10d2f43885.zip
Fix FTBFS
Diffstat (limited to 'src/gui/general/ClefIndex.cpp')
-rw-r--r--src/gui/general/ClefIndex.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/general/ClefIndex.cpp b/src/gui/general/ClefIndex.cpp
index 376b6cb..b02f01a 100644
--- a/src/gui/general/ClefIndex.cpp
+++ b/src/gui/general/ClefIndex.cpp
@@ -55,7 +55,7 @@ const Rosegarden::Clef clefIndexToClef(int index)
const int clefNameToClefIndex(TQString s)
{
int m_elClef = 0;
- if (s) {
+ if (!s.isNull()) {
if (s == "treble")
m_elClef = TrebleClef;
else if (s == "bass")
@@ -97,4 +97,4 @@ const int clefNameToClefIndex(TQString s)
return m_elClef;
}
-} \ No newline at end of file
+}