namespace generate_xml {
static void _writeUIApplicationAttributes(
- xmlTextWriterPtr writer, uiapplication_x *app) {
+ xmlTextWriterPtr writer, uiapplication_x */*app*/) {
xmlTextWriterWriteAttribute(writer, BAD_CAST "taskmanage",
BAD_CAST "true");
}
if (std::is_same<T, serviceapplication_x>::value)
_writeServiceApplicationAttributes(
writer, reinterpret_cast<serviceapplication_x *>(app));
- if(app->label){
+ if (app->label) {
label_x* label = nullptr;
LISTHEAD(app->label, label);
for (; label; label = label->next) {
return false;
}
- return (space_info.free >= required_size);
+ return (space_info.free >= static_cast<uint64_t>(required_size));
}
} // namespace
// icon
SetChildren(&(p->icon), tree, el, "icon",
- [&](XmlElement *el, icon_x* p){
+ [&](XmlElement *el, icon_x* p) { // NOLINT
p->text = string_strdup(el->content());
// NOTE: name is an attribute, but the xml writer uses it as text.
// This must be fixed in whole app-installer modules, including wgt.
// label
SetChildren(&(p->label), tree, el, "label",
- [&](XmlElement *el, label_x* p){
+ [&](XmlElement *el, label_x* p) {
// NOTE: name is an attribute, but the xml writer uses it as text.
// This must be fixed in whole app-installer modules, including wgt.
// Current implementation is just for compatibility.
const std::string& version = wgt_info->version();
const std::string& required_api_version = info->required_version();
- if(manifest->uiapplication->label){
+ if (manifest->uiapplication->label) {
context_->config_data.get().application_name.set(
std::string(manifest->uiapplication->label->name));
}
// class XmlTree
-XmlTree::XmlTree(xmlDoc* doc) : doc_(doc), root_(nullptr) {
+XmlTree::XmlTree(xmlDoc* doc) : root_(nullptr), doc_(doc) {
}
XmlTree::~XmlTree() {