Mark methods const where possible

This commit is contained in:
TheAssassin
2019-08-14 04:11:36 +02:00
parent 1cb5a742db
commit 5bc8840003

View File

@@ -76,7 +76,7 @@ namespace linuxdeploy {
}
}
bool deployCustomAppRunFile(const bf::path& customAppRunPath) {
bool deployCustomAppRunFile(const bf::path& customAppRunPath) const {
// copy custom AppRun executable
// FIXME: make sure this file is executable
ldLog() << "Deploying custom AppRun:" << customAppRunPath;
@@ -85,7 +85,7 @@ namespace linuxdeploy {
return false;
}
bool deployStandardAppRunFromDesktopFile(const DesktopFile& desktopFile, const bf::path& customAppRunPath) {
bool deployStandardAppRunFromDesktopFile(const DesktopFile& desktopFile, const bf::path& customAppRunPath) const {
// check if there is a custom AppRun already
// in that case, skip deployment of symlink
if (bf::exists(appDir.path() / "AppRun")) {