}
-void JniBundleResource::handleSetAttributesRequest(RCSResourceAttributes &attrs){
+void JniBundleResource::handleSetAttributesRequest(const RCSResourceAttributes &attrs){
LOGD("handleSetAttributesRequest called %d", attrs.size());
//m_env->CallObjectMethod(m_bundleResource, m_attributeSetRequestHandler, attrName, val);
}
}
-RCSResourceAttributes & JniBundleResource::handleGetAttributesRequest()
+RCSResourceAttributes JniBundleResource::handleGetAttributesRequest()
{
LOGD("handleGetAttributesRequest");
LOGD("parsing attributes");
m_env->MonitorEnter(m_bundleResource);
LOGD("to native attributes");
- RCSResourceAttributes attrs = toNativeAttributes(m_env, responseObj);
+ const RCSResourceAttributes attrs = toNativeAttributes(m_env, responseObj);
LOGD("Received attributes %d", attrs.size());
JniBundleResource::setAttributes(attrs, false);
m_env->MonitorExit(m_bundleResource);