Browse Source

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

commit.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Michele Calgaro 7 months 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) :
476 476
         }
477 477
     }
478 478
 
479
-#if (__GNUC__ < 3)
480
-    std::ostrstream os;
481
-#else
482 479
     std::ostringstream os;
483
-#endif
484
-
485 480
     os << "No " << (isMinor ? "minor" : "major") << " key with "
486 481
        << accidentalCount << (isSharp ? " sharp(s)" : " flat(s)");
487 482
 
488
-#if (__GNUC__ < 3)
489
-    os << std::ends;
490
-#endif
491
-
492 483
     throw BadKeySpec(os.str());
493 484
 }
494 485
 
@@ -509,19 +500,11 @@ Key::Key(int tonicPitch, bool isMinor) :
509 500
         }
510 501
     }
511 502
 
512
-#if (__GNUC__ < 3)
513
-    std::ostrstream os;
514
-#else
515 503
     std::ostringstream os;
516
-#endif
517 504
 
518 505
     os << "No " << (isMinor ? "minor" : "major") << " key with tonic pitch "
519 506
        << tonicPitch;
520 507
 
521
-#if (__GNUC__ < 3)
522
-    os << std::ends;
523
-#endif
524
-
525 508
     throw BadKeySpec(os.str());
526 509
 }
527 510
     

Loading…
Cancel
Save