summaryrefslogtreecommitdiffstats
path: root/Source/cmSourceFile.h
diff options
context:
space:
mode:
authorDaniel Eiband <daniel.eiband@brainlab.com>2019-09-21 11:31:36 (GMT)
committerDaniel Eiband <daniel.eiband@brainlab.com>2019-09-21 11:31:36 (GMT)
commit8456f60dbc13b9fbd0490371c871a1e85a72c3a8 (patch)
treee1452ca079a7e1d8af1e22d23417223bf18eaae1 /Source/cmSourceFile.h
parentebb9346490741ddc2ce6f552bc1be57dfc730cfa (diff)
downloadCMake-8456f60dbc13b9fbd0490371c871a1e85a72c3a8.zip
CMake-8456f60dbc13b9fbd0490371c871a1e85a72c3a8.tar.gz
CMake-8456f60dbc13b9fbd0490371c871a1e85a72c3a8.tar.bz2
cmSourceFile: Remove non-const GetProperties accessor
Manipulating the property map of cmSourceFile directly may invalidate the class invariant of the cached value IsGenerated. Provide the setter SetProperties which also updates IsGenerated.
Diffstat (limited to 'Source/cmSourceFile.h')
-rw-r--r--Source/cmSourceFile.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h
index ff465c7..3b18fdb 100644
--- a/Source/cmSourceFile.h
+++ b/Source/cmSourceFile.h
@@ -94,8 +94,9 @@ public:
void AddDepend(const std::string& d) { this->Depends.push_back(d); }
// Get the properties
- cmPropertyMap& GetProperties() { return this->Properties; }
const cmPropertyMap& GetProperties() const { return this->Properties; }
+ // Set the properties
+ void SetProperties(cmPropertyMap properties);
/**
* Check whether the given source file location could refer to this