summaryrefslogtreecommitdiffstats
path: root/parameter/Parameter.cpp
diff options
context:
space:
mode:
authorFrancois Gaffie <francois.gaffie@intel.com>2014-04-07 13:47:48 +0200
committerMattijs Korpershoek <mattijsx.korpershoek@intel.com>2014-06-24 11:51:36 +0200
commita1258f4f8121fbda5223e3875ac7ef6d53195e4c (patch)
treeeb94f0cb98256c1a5b0d17726798f1ad5daf52e1 /parameter/Parameter.cpp
parent8ab7293fc32d078f558985b938fa5c71c2b0404b (diff)
downloadexternal_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/Parameter.cpp')
-rw-r--r--parameter/Parameter.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/parameter/Parameter.cpp b/parameter/Parameter.cpp
index 75433dd..36903f6 100644
--- a/parameter/Parameter.cpp
+++ b/parameter/Parameter.cpp
@@ -130,15 +130,14 @@ bool CParameter::doAccess(type& value, bool bSet,
if (!doSet(value, getOffset() - parameterAccessContext.getBaseOffset(),
parameterAccessContext)) {
- // Append parameter path to error
- parameterAccessContext.appendToError(" " + getPath());
+ appendParameterPathToError(parameterAccessContext);
return false;
}
// Synchronize
if (!sync(parameterAccessContext)){
- parameterAccessContext.appendToError(" " + getPath());
+ appendParameterPathToError(parameterAccessContext);
return false;
}
} else {
@@ -146,8 +145,7 @@ bool CParameter::doAccess(type& value, bool bSet,
if (!doGet(value, getOffset() - parameterAccessContext.getBaseOffset(),
parameterAccessContext)) {
- // Append parameter path to error
- parameterAccessContext.appendToError(" " + getPath());
+ appendParameterPathToError(parameterAccessContext);
return false;
}
}