diff options
author | Francois Gaffie <francois.gaffie@intel.com> | 2014-04-07 13:47:48 +0200 |
---|---|---|
committer | Mattijs Korpershoek <mattijsx.korpershoek@intel.com> | 2014-06-24 11:51:36 +0200 |
commit | a1258f4f8121fbda5223e3875ac7ef6d53195e4c (patch) | |
tree | eb94f0cb98256c1a5b0d17726798f1ad5daf52e1 /parameter/ArrayParameter.cpp | |
parent | 8ab7293fc32d078f558985b938fa5c71c2b0404b (diff) | |
download | external_parameter-framework-a1258f4f8121fbda5223e3875ac7ef6d53195e4c.zip external_parameter-framework-a1258f4f8121fbda5223e3875ac7ef6d53195e4c.tar.gz external_parameter-framework-a1258f4f8121fbda5223e3875ac7ef6d53195e4c.tar.bz2 |
Add explicit API to append parameter path to error log
BZ: 183857
Explicit API names makes the code easier to read, allowing even
to remove some comments.
This patch adds an API to append the parameter path to the error log.
Change-Id: Id136497072e53c8dd0ea3d95354e1dfe6193f771
Signed-off-by: Francois Gaffie <francois.gaffie@intel.com>
Signed-off-by: Mattijs Korpershoek <mattijsx.korpershoek@intel.com>
Diffstat (limited to 'parameter/ArrayParameter.cpp')
-rw-r--r-- | parameter/ArrayParameter.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/parameter/ArrayParameter.cpp b/parameter/ArrayParameter.cpp index 47000a7..a1184cd 100644 --- a/parameter/ArrayParameter.cpp +++ b/parameter/ArrayParameter.cpp @@ -121,8 +121,7 @@ bool CArrayParameter::accessValue(CPathNavigator& pathNavigator, string& strValu // Synchronize if (!sync(parameterAccessContext)) { - // Append parameter path to error - parameterAccessContext.appendToError(" " + getPath()); + appendParameterPathToError(parameterAccessContext); return false; } } else { @@ -330,22 +329,19 @@ bool CArrayParameter::accessValues(vector<type>& values, bool bSet, CParameterAc // Set Value if (!setValues(values, parameterAccessContext)) { - // Append parameter path to error - parameterAccessContext.appendToError(" " + getPath()); + appendParameterPathToError(parameterAccessContext); return false; } if (!sync(parameterAccessContext)) { - // Append parameter path to error - parameterAccessContext.appendToError(" " + getPath()); + appendParameterPathToError(parameterAccessContext); return false; } } else { // Get Value if (!getValues(values, parameterAccessContext)) { - // Append parameter path to error - parameterAccessContext.appendToError(" " + getPath()); + appendParameterPathToError(parameterAccessContext); return false; } } |