modernize std::string("foo") into "foo"s
* spot/ltsmin/ltsmin.cc, spot/misc/tmpfile.cc,
spot/parseaut/parseaut.yy, spot/taalgos/dot.cc, spot/tl/hierarchy.cc,
spot/tl/unabbrev.cc, spot/twa/acc.cc, spot/twa/twagraph.cc,
spot/twaalgos/dot.cc, spot/twaalgos/hoa.cc, spot/twaalgos/lbtt.cc,
spot/twaalgos/neverclaim.cc, spot/twaalgos/strength.cc,
spot/twaalgos/word.cc: Replace std::string("foo") by "foo"s, and
include namespace std::string_literals.
This commit is contained in:
parent
832ee81f75
commit
d08193508e
14 changed files with 66 additions and 51 deletions
|
|
@ -39,6 +39,7 @@
|
|||
#include <ctype.h>
|
||||
#include <utility>
|
||||
|
||||
using namespace std::string_literals;
|
||||
|
||||
namespace spot
|
||||
{
|
||||
|
|
@ -176,7 +177,7 @@ namespace spot
|
|||
// Prevent infinite recursions...
|
||||
if (orig == def.c_str())
|
||||
throw std::runtime_error
|
||||
(std::string("SPOT_DOTDEFAULT should not contain '.'"));
|
||||
("SPOT_DOTDEFAULT should not contain '.'");
|
||||
if (!def.empty())
|
||||
parse_opts(def.c_str());
|
||||
break;
|
||||
|
|
@ -312,7 +313,7 @@ namespace spot
|
|||
break;
|
||||
default:
|
||||
throw std::runtime_error
|
||||
(std::string("unknown option for print_dot(): ") + c);
|
||||
("unknown option for print_dot(): "s + c);
|
||||
}
|
||||
if (opt_color_sets_ && !opt_latex_)
|
||||
opt_html_labels_ = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue