diff options
Diffstat (limited to 'parameter/InstanceConfigurableElement.cpp')
-rw-r--r-- | parameter/InstanceConfigurableElement.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/parameter/InstanceConfigurableElement.cpp b/parameter/InstanceConfigurableElement.cpp index 098fe8f..003a606 100644 --- a/parameter/InstanceConfigurableElement.cpp +++ b/parameter/InstanceConfigurableElement.cpp @@ -35,7 +35,7 @@ #include "ParameterAccessContext.h" #include <assert.h> -#define base CConfigurableElement +#define base CConfigurableElementWithMapping CInstanceConfigurableElement::CInstanceConfigurableElement(const string& strName, const CTypeElement* pTypeElement) : base(strName), _pTypeElement(pTypeElement), _pSyncer(NULL) { @@ -175,9 +175,14 @@ void CInstanceConfigurableElement::fillSyncerSetFromDescendant(CSyncerSet& synce } } -// Sync bool CInstanceConfigurableElement::sync(CParameterAccessContext& parameterAccessContext) const { + if (!parameterAccessContext.getAutoSync()) { + + // AutoSync is disabled, do not perform the sync. + // This is not an error, but the expected behavior so return true anyway. + return true; + } ISyncer* pSyncer = getSyncer(); if (!pSyncer) { @@ -211,4 +216,3 @@ bool CInstanceConfigurableElement::checkPathExhausted(CPathNavigator& pathNaviga } return true; } - |