summaryrefslogtreecommitdiffstats
path: root/src/base/NotationTypes.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-08-17 00:02:56 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-08-17 00:04:04 +0900
commit9a65aed9370a88243b034477f42df1baad7f22c5 (patch)
tree2d74ba1fd4739f13d51c3a0095cd524e55ab7c7d /src/base/NotationTypes.cpp
parent26afcbf0f90d77adde8d3f0948ffc2b707413315 (diff)
downloadrosegarden-9a65aed9370a88243b034477f42df1baad7f22c5.tar.gz
rosegarden-9a65aed9370a88243b034477f42df1baad7f22c5.zip
Fix minor leftover from strstream to sstream conversion not done in previous
commit. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit d8a9ad699fad48e47569ecb7720b70cc4d6f191f)
Diffstat (limited to 'src/base/NotationTypes.cpp')
-rw-r--r--src/base/NotationTypes.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/base/NotationTypes.cpp b/src/base/NotationTypes.cpp
index 689936b..6fe1360 100644
--- a/src/base/NotationTypes.cpp
+++ b/src/base/NotationTypes.cpp
@@ -476,19 +476,10 @@ Key::Key(int accidentalCount, bool isSharp, bool isMinor) :
}
}
-#if (__GNUC__ < 3)
- std::ostrstream os;
-#else
std::ostringstream os;
-#endif
-
os << "No " << (isMinor ? "minor" : "major") << " key with "
<< accidentalCount << (isSharp ? " sharp(s)" : " flat(s)");
-#if (__GNUC__ < 3)
- os << std::ends;
-#endif
-
throw BadKeySpec(os.str());
}
@@ -509,19 +500,11 @@ Key::Key(int tonicPitch, bool isMinor) :
}
}
-#if (__GNUC__ < 3)
- std::ostrstream os;
-#else
std::ostringstream os;
-#endif
os << "No " << (isMinor ? "minor" : "major") << " key with tonic pitch "
<< tonicPitch;
-#if (__GNUC__ < 3)
- os << std::ends;
-#endif
-
throw BadKeySpec(os.str());
}