diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-08-17 00:02:56 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-08-17 00:02:56 +0900 |
commit | d8a9ad699fad48e47569ecb7720b70cc4d6f191f (patch) | |
tree | dfc2fe1299f982a61c496b7584f358a71a55b7e7 /src/base | |
parent | 8c0cfbf6610b1a3a70ee1d6098a9c7dacfba5445 (diff) | |
download | rosegarden-d8a9ad699fad48e47569ecb7720b70cc4d6f191f.tar.gz rosegarden-d8a9ad699fad48e47569ecb7720b70cc4d6f191f.zip |
Fix minor leftover from strstream to sstream conversion not done in previous
commit.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/NotationTypes.cpp | 17 |
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()); } |