]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/repeat-acknowledge-engraver.cc
Issue 4550 (1/2) Avoid "using namespace std;" in included files
[lilypond.git] / lily / repeat-acknowledge-engraver.cc
index a76484e086633345d888c88ea992b8a47ef9e2b6..96ed3039b5683ae13e7d3a23f9623a139115670b 100644 (file)
@@ -24,6 +24,8 @@
 
 #include "translator.icc"
 
+using std::string;
+
 /*
   Objective:
 
@@ -85,13 +87,14 @@ Repeat_acknowledge_engraver::process_music ()
   while (scm_is_pair (cs))
     {
       SCM command = scm_car (cs);
-      if (command == ly_symbol2scm ("start-repeat"))
+      if (scm_is_eq (command, ly_symbol2scm ("start-repeat")))
         start = true;
-      else if (command == ly_symbol2scm ("end-repeat"))
+      else if (scm_is_eq (command, ly_symbol2scm ("end-repeat")))
         end = true;
-      else if (command == ly_symbol2scm ("segno-display"))
+      else if (scm_is_eq (command, ly_symbol2scm ("segno-display")))
         segno = true;
-      else if (scm_is_pair (command) && scm_car (command) == ly_symbol2scm ("volta"))
+      else if (scm_is_pair (command)
+               && scm_is_eq (scm_car (command), ly_symbol2scm ("volta")))
         volta_found = true;
       cs = scm_cdr (cs);
     }