#include "wgt/step/step_wgt_backup_icons.h"
#include <pkgmgr-info.h>
+#include <vector>
namespace {
const char kSharedRes[] = "shared/res";
namespace backup {
common_installer::Step::Status StepWgtBackupIcons::process() {
- // TODO (l.wysocki): As a temporary solution this will move icons into two
+ // TODO(l.wysocki): As a temporary solution this will move icons into two
// destinations respectively {HOME}/.applications/icons,
// and {APP_ROOT}/shared/res, when some project will stop using old
// location ({HOME}/.applications/icons) then it can be removed from here.
#include "wgt/step/step_wgt_create_icons.h"
#include <pkgmgr-info.h>
+#include <vector>
#include "common/utils/glist_range.h"
namespace filesystem {
common_installer::Step::Status StepWgtCreateIcons::process() {
- // TODO (l.wysocki): As a temporary solution this will copy icons into two
+ // TODO(l.wysocki): As a temporary solution this will copy icons into two
// destinations respectively {HOME}/.applications/icons,
// and {APP_ROOT}/shared/res, when some project will stop using old
// location ({HOME}/.applications/icons) then it can be removed from here.
icon_x* icon = reinterpret_cast<icon_x*>(app->icon->data);
bf::path icon_path = StepCreateIcons::GetIconRoot() / icon->text;
if (icon->text)
- free((void *)icon->text);
+ free(const_cast<char *>(icon->text));
icon->text = strdup(icon_path.c_str());
}
}
namespace filesystem {
std::vector<boost::filesystem::path> StepWgtRecoverIcons::GetIconsPaths() {
- // TODO (l.wysocki): As a temporary solution this will move icons into two
+ // TODO(l.wysocki): As a temporary solution this will move icons into two
// destinations respectively {HOME}/.applications/icons,
// and {APP_ROOT}/shared/res, when some project will stop using old
// location ({HOME}/.applications/icons) then it can be removed from here.
#define WGT_STEP_STEP_WGT_RECOVER_ICONS_H_
#include <common/step/step_recover_icons.h>
+#include <vector>
namespace wgt {
namespace filesystem {