cmMakefile: use std::string_view

This commit is contained in:
Ben Boeckel
2020-04-08 13:15:02 -04:00
parent 37872088cf
commit 80edc2cd8a

View File

@@ -24,6 +24,7 @@
#include "cm_jsoncpp_value.h"
#include "cm_jsoncpp_writer.h"
#include "cm_static_string_view.hxx"
#include "cm_sys_stat.h"
#include "cmAlgorithms.h"
@@ -2513,7 +2514,7 @@ void cmMakefile::ExpandVariablesCMP0019()
for (auto l = linkLibs.begin(); l != linkLibs.end(); ++l) {
std::string libName = *l;
if (libName == "optimized" || libName == "debug") {
if (libName == "optimized"_s || libName == "debug"_s) {
++l;
libName = *l;
}