Fix some new errors raised by clang 703.0.29.

This commit is contained in:
John Ralls 2016-04-07 15:41:15 -07:00
parent dbf4eada94
commit 4fa68502ec
2 changed files with 5 additions and 5 deletions

View File

@ -307,7 +307,7 @@ GncDateTime::utc_tm() const
GncDate GncDate
GncDateTime::date() const GncDateTime::date() const
{ {
return std::move(GncDate(m_impl->date())); return GncDate(m_impl->date());
} }
std::string std::string

View File

@ -1062,7 +1062,7 @@ qof_instance_has_kvp (QofInstance *inst)
void void
qof_instance_set_kvp (QofInstance *inst, const gchar *key, const GValue *value) qof_instance_set_kvp (QofInstance *inst, const gchar *key, const GValue *value)
{ {
delete inst->kvp_data->set_path({key}, kvp_value_from_gvalue(value)); delete inst->kvp_data->set_path(key, kvp_value_from_gvalue(value));
} }
void void
@ -1115,7 +1115,7 @@ qof_instance_kvp_add_guid (const QofInstance *inst, const char* path,
auto container = new KvpFrame; auto container = new KvpFrame;
container->set(key, new KvpValue(const_cast<GncGUID*>(guid))); container->set(key, new KvpValue(const_cast<GncGUID*>(guid)));
container->set("date", new KvpValue(time)); container->set("date", new KvpValue(time));
delete inst->kvp_data->set_path({path}, new KvpValue(container)); delete inst->kvp_data->set_path(path, new KvpValue(container));
} }
inline static gboolean inline static gboolean
@ -1182,7 +1182,7 @@ qof_instance_kvp_remove_guid (const QofInstance *inst, const char *path,
case KvpValue::Type::FRAME: case KvpValue::Type::FRAME:
if (kvp_match_guid (v, key, guid)) if (kvp_match_guid (v, key, guid))
{ {
delete inst->kvp_data->set_path({path}, nullptr); delete inst->kvp_data->set_path(path, nullptr);
delete v; delete v;
} }
break; break;
@ -1227,7 +1227,7 @@ qof_instance_kvp_merge_guids (const QofInstance *target,
if (target_val) if (target_val)
target_val->add(v); target_val->add(v);
else else
target->kvp_data->set_path({path}, v); target->kvp_data->set_path(path, v);
donor->kvp_data->set(path, nullptr); //Contents moved, Don't delete! donor->kvp_data->set(path, nullptr); //Contents moved, Don't delete!
break; break;
case KvpValue::Type::GLIST: case KvpValue::Type::GLIST: