summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/guitar/Fingering.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-18 18:14:51 -0600
committerTimothy Pearson <[email protected]>2011-12-18 18:14:51 -0600
commitef13416bfc43e51ef4e20919e0fab81ae05e0fe2 (patch)
tree76bc36e1cbecae4d7811b5605adfb0804d0041f9 /src/gui/editors/guitar/Fingering.cpp
parent6ca08e7a881c0c97f338e0085f75af04ec08ad04 (diff)
downloadrosegarden-ef13416bfc43e51ef4e20919e0fab81ae05e0fe2.tar.gz
rosegarden-ef13416bfc43e51ef4e20919e0fab81ae05e0fe2.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'src/gui/editors/guitar/Fingering.cpp')
-rw-r--r--src/gui/editors/guitar/Fingering.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/editors/guitar/Fingering.cpp b/src/gui/editors/guitar/Fingering.cpp
index 7e5ecc4..e129296 100644
--- a/src/gui/editors/guitar/Fingering.cpp
+++ b/src/gui/editors/guitar/Fingering.cpp
@@ -69,24 +69,24 @@ Fingering::getStartFret() const
bool
Fingering::hasBarre() const
{
- int lastStringtqStatus = m_strings[getNbStrings() - 1];
+ int lastStringStatus = m_strings[getNbStrings() - 1];
- return ((m_strings[0] > OPEN && m_strings[0] == lastStringtqStatus) ||
- (m_strings[1] > OPEN && m_strings[1] == lastStringtqStatus) ||
- (m_strings[2] > OPEN && m_strings[2] == lastStringtqStatus));
+ return ((m_strings[0] > OPEN && m_strings[0] == lastStringStatus) ||
+ (m_strings[1] > OPEN && m_strings[1] == lastStringStatus) ||
+ (m_strings[2] > OPEN && m_strings[2] == lastStringStatus));
}
Fingering::Barre
Fingering::getBarre() const
{
- int lastStringtqStatus = m_strings[getNbStrings() - 1];
+ int lastStringStatus = m_strings[getNbStrings() - 1];
Barre res;
- res.fret = lastStringtqStatus;
+ res.fret = lastStringStatus;
for(unsigned int i = 0; i < 3; ++i) {
- if (m_strings[i] > OPEN && m_strings[i] == lastStringtqStatus)
+ if (m_strings[i] > OPEN && m_strings[i] == lastStringStatus)
res.start = i;
break;
}
@@ -140,8 +140,8 @@ std::string Fingering::toString() const
bool operator<(const Fingering& a, const Fingering& b)
{
for(unsigned int i = 0; i < Fingering::DEFAULT_NB_STRINGS; ++i) {
- if (a.getStringtqStatus(i) != b.getStringtqStatus(i)) {
- return a.getStringtqStatus(i) < b.getStringtqStatus(i);
+ if (a.getStringStatus(i) != b.getStringStatus(i)) {
+ return a.getStringStatus(i) < b.getStringStatus(i);
}
}
return false;