diff options
author | Patrick Sattler <sattler@itestra.de> | 2014-03-10 17:42:25 +0100 |
---|---|---|
committer | Patrick Sattler <sattler@itestra.de> | 2014-03-10 17:42:25 +0100 |
commit | 6888f06d3e45e62198aaa8e15401fccb1a0a56b8 (patch) | |
tree | 6b50499adabc4ac7367dfe1bcb993fff3bf98cb2 | |
parent | 07a76ff10e831189d6a222b89e7711787eac0052 (diff) | |
download | genivi-common-api-runtime-6888f06d3e45e62198aaa8e15401fccb1a0a56b8.tar.gz |
Fixed a minor bug for the StubDefault generation
-rw-r--r-- | org.genivi.commonapi.core/src/org/genivi/commonapi/core/generator/FInterfaceStubGenerator.xtend | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.genivi.commonapi.core/src/org/genivi/commonapi/core/generator/FInterfaceStubGenerator.xtend b/org.genivi.commonapi.core/src/org/genivi/commonapi/core/generator/FInterfaceStubGenerator.xtend index d9b1ad7..30f22da 100644 --- a/org.genivi.commonapi.core/src/org/genivi/commonapi/core/generator/FInterfaceStubGenerator.xtend +++ b/org.genivi.commonapi.core/src/org/genivi/commonapi/core/generator/FInterfaceStubGenerator.xtend @@ -350,7 +350,7 @@ class FInterfaceStubGenerator { void «fInterface.stubDefaultClassName»::«attribute.stubDefaultClassSetMethodName»(«attribute.getTypeName(fInterface.model)» value) { «IF attribute.isObservable»const bool valueChanged = «ENDIF»«attribute.stubDefaultClassTrySetMethodName»(std::move(value)); «IF attribute.isObservable» - if (valueChanged) { + if (valueChanged && stubAdapter_ != NULL) { stubAdapter_->«attribute.stubAdapterClassFireChangedMethodName»(«attribute.stubDefaultClassVariableName»); } «ENDIF» |