summaryrefslogtreecommitdiff
path: root/Source/cmStateSnapshot.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmStateSnapshot.h')
-rw-r--r--Source/cmStateSnapshot.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/cmStateSnapshot.h b/Source/cmStateSnapshot.h
index 021fd53c13..d06cba37a8 100644
--- a/Source/cmStateSnapshot.h
+++ b/Source/cmStateSnapshot.h
@@ -1,8 +1,7 @@
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
-#ifndef cmStateSnapshot_h
-#define cmStateSnapshot_h
+#pragma once
#include "cmConfigure.h" // IWYU pragma: keep
@@ -28,13 +27,12 @@ public:
bool IsInitialized(std::string const& name) const;
void SetDefinition(std::string const& name, cm::string_view value);
void RemoveDefinition(std::string const& name);
- std::vector<std::string> UnusedKeys() const;
std::vector<std::string> ClosureKeys() const;
bool RaiseScope(std::string const& var, const char* varDef);
void SetListFile(std::string const& listfile);
- std::string GetExecutionListFile() const;
+ std::string const& GetExecutionListFile() const;
std::vector<cmStateSnapshot> GetChildren();
@@ -88,5 +86,3 @@ private:
bool operator==(const cmStateSnapshot& lhs, const cmStateSnapshot& rhs);
bool operator!=(const cmStateSnapshot& lhs, const cmStateSnapshot& rhs);
-
-#endif