Browse Source

Fix minor leftover from strstream to sstream conversion not done in previous

commit.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/1/head
Michele Calgaro 1 year ago
parent
commit
d8a9ad699f
Signed by: Michele Calgaro <michele.calgaro@yahoo.it> GPG Key ID: 2A75B7CA8ADED5CF
1 changed files with 0 additions and 17 deletions
  1. 0
    17
      src/base/NotationTypes.cpp

+ 0
- 17
src/base/NotationTypes.cpp View File

@@ -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());
}

Loading…
Cancel
Save