cmNinjaTargetGenerator: use .clear() to empty out some strings

This commit is contained in:
Ben Boeckel
2022-12-01 22:21:42 -05:00
parent 4f9ec5a9be
commit 9123a0991f
+2 -2
View File
@@ -542,9 +542,9 @@ cmNinjaRule GetScanRule(
// Scanning always uses a depfile for preprocessor dependencies.
if (deptype == "msvc"_s) {
rule.DepType = deptype;
rule.DepFile = "";
rule.DepFile.clear();
} else {
rule.DepType = ""; // no deps= for multiple outputs
rule.DepType.clear(); // no deps= for multiple outputs
rule.DepFile = "$DEP_FILE";
}