]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/getopt-long.cc
Issue 4550 (1/2) Avoid "using namespace std;" in included files
[lilypond.git] / flower / getopt-long.cc
index 88c5d92bde26f8185627ea3c7d1dc9635ed39f1e..49f7c8831db25683ae0fddfd66d5b3630390f6eb 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 1996--2012 Han-Wen Nienhuys, <hanwen@xs4all.nl>
+  Copyright (C) 1996--2015 Han-Wen Nienhuys, <hanwen@xs4all.nl>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -36,6 +36,8 @@ gettext (char const *s)
 #include <libintl.h>
 #endif
 
+using std::string;
+
 long
 Getopt_long::get_argument_index ()
 {
@@ -103,11 +105,11 @@ Long_option_init::to_string () const
 {
   string str;
   if (shortname_char_)
-    str += "-" + shortname_char_;
+    str += string ("-") + shortname_char_;
   if (shortname_char_ && longname_str0_)
     str += ", ";
   if (longname_str0_)
-    str += string ("`--") + longname_str0_ + "'";
+    str += string ("--") + longname_str0_;
   return str;
 }