projects
/
platform
/
core
/
test
/
security-tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid appId and pkgId copying in AppInstallHelper
[platform/core/test/security-tests.git]
/
src
/
common
/
app_install_helper.h
diff --git
a/src/common/app_install_helper.h
b/src/common/app_install_helper.h
index
cefeb71
..
9841481
100644
(file)
--- a/
src/common/app_install_helper.h
+++ b/
src/common/app_install_helper.h
@@
-38,7
+38,7
@@
struct AppInstallHelper {
bool isLocal,
uid_t uid,
std::string version = std::string())
bool isLocal,
uid_t uid,
std::string version = std::string())
- : m_appName(appNamePrefix
), m_pkgName(pkgNamePrefix
), m_isLocal(isLocal), m_uidGid(uid), m_version(version),
+ : m_appName(appNamePrefix
+ "_app_id"), m_pkgName(pkgNamePrefix + "_pkg_id"
), m_isLocal(isLocal), m_uidGid(uid), m_version(version),
m_installType(SM_APP_INSTALL_NONE), m_isHybrid(false), m_creatorPid(getpid())
{}
m_installType(SM_APP_INSTALL_NONE), m_isHybrid(false), m_creatorPid(getpid())
{}
@@
-74,8
+74,8
@@
struct AppInstallHelper {
AppInstallHelper(AppInstallHelper &&other);
// App info getters and setters
AppInstallHelper(AppInstallHelper &&other);
// App info getters and setters
-
std::string
getAppId() const;
-
std::string
getPkgId() const;
+
const std::string&
getAppId() const;
+
const std::string&
getPkgId() const;
int getUID() const;
int getGID() const;
void setVersion(const std::string &version);
int getUID() const;
int getGID() const;
void setVersion(const std::string &version);
@@
-163,8
+163,8
@@
protected:
RootType rType = RootType::BASE);
void createInstallDir(RootType type);
RootType rType = RootType::BASE);
void createInstallDir(RootType type);
- std::string m_appName;
- std::string m_pkgName;
+
const
std::string m_appName;
+
const
std::string m_pkgName;
bool m_isLocal;
int m_uidGid;
std::string m_version;
bool m_isLocal;
int m_uidGid;
std::string m_version;