From 9a65aed9370a88243b034477f42df1baad7f22c5 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 17 Aug 2018 00:02:56 +0900 Subject: Fix minor leftover from strstream to sstream conversion not done in previous commit. Signed-off-by: Michele Calgaro (cherry picked from commit d8a9ad699fad48e47569ecb7720b70cc4d6f191f) --- src/base/NotationTypes.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/base') 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()); } -- cgit v1.2.1