summaryrefslogtreecommitdiff
path: root/Source/cmCPluginAPI.cxx
diff options
context:
space:
mode:
authorDaniel Eiband <daniel.eiband@brainlab.com>2019-09-21 13:31:36 +0200
committerDaniel Eiband <daniel.eiband@brainlab.com>2019-09-21 13:31:36 +0200
commit8456f60dbc13b9fbd0490371c871a1e85a72c3a8 (patch)
treee1452ca079a7e1d8af1e22d23417223bf18eaae1 /Source/cmCPluginAPI.cxx
parentebb9346490741ddc2ce6f552bc1be57dfc730cfa (diff)
downloadcmake-8456f60dbc13b9fbd0490371c871a1e85a72c3a8.tar.gz
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/cmCPluginAPI.cxx')
-rw-r--r--Source/cmCPluginAPI.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index 9c7beca0c2..1eaf48b163 100644
--- a/Source/cmCPluginAPI.cxx
+++ b/Source/cmCPluginAPI.cxx
@@ -561,7 +561,7 @@ void* CCONV cmAddSource(void* arg, void* arg2)
// Create the real cmSourceFile instance and copy over saved information.
cmSourceFile* rsf = mf->GetOrCreateSource(osf->FullPath);
- rsf->GetProperties() = osf->Properties;
+ rsf->SetProperties(osf->Properties);
for (std::string const& d : osf->Depends) {
rsf->AddDepend(d);
}