summaryrefslogtreecommitdiff
path: root/src/Manager/InstallerManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Manager/InstallerManager.cpp')
-rwxr-xr-x[-rw-r--r--]src/Manager/InstallerManager.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Manager/InstallerManager.cpp b/src/Manager/InstallerManager.cpp
index 723fbac..368a505 100644..100755
--- a/src/Manager/InstallerManager.cpp
+++ b/src/Manager/InstallerManager.cpp
@@ -163,37 +163,37 @@ InstallerManager::CreateInstaller(InstallerType installerType)
{
case INSTALLER_TYPE_INSTALLER:
AppLogTag(OSP_INSTALLER, "InstallerType = [Installer]");
- pInstaller = new Installer();
+ pInstaller = new (std::nothrow) Installer();
break;
case INSTALLER_TYPE_PACKAGE:
AppLogTag(OSP_INSTALLER, "InstallerType = [PackageInstaller]");
- pInstaller = new PackageInstaller();
+ pInstaller = new (std::nothrow) PackageInstaller();
break;
case INSTALLER_TYPE_DIRECTORY:
AppLogTag(OSP_INSTALLER, "InstallerType = [DirectoryInstaller]");
- pInstaller = new DirectoryInstaller();
+ pInstaller = new (std::nothrow) DirectoryInstaller();
break;
case INSTALLER_TYPE_GUEST:
AppLogTag(OSP_INSTALLER, "InstallerType = [GuestInstaller]");
- pInstaller = new GuestInstaller();
+ pInstaller = new (std::nothrow) GuestInstaller();
break;
case INSTALLER_TYPE_PRELOADED:
AppLogTag(OSP_INSTALLER, "InstallerType = [PreloadedInstaller]");
- pInstaller = new PreloadedInstaller();
+ pInstaller = new (std::nothrow) PreloadedInstaller();
break;
case INSTALLER_TYPE_IDE:
AppLogTag(OSP_INSTALLER, "InstallerType = [IDEInstaller]");
- pInstaller = new IDEInstaller();
+ pInstaller = new (std::nothrow) IDEInstaller();
break;
case INSTALLER_TYPE_RESTORATION:
AppLogTag(OSP_INSTALLER, "InstallerType = [RestorationInstaller]");
- pInstaller = new RestorationInstaller();
+ pInstaller = new (std::nothrow) RestorationInstaller();
break;
default:
@@ -373,7 +373,7 @@ InstallerManager::RequestRecursiveDirectory(const Tizen::Base::String& path, int
int successCount = 0;
int failureCount = 0;
- pDir = new Directory; // Allocate %Directory instance
+ pDir = new (std::nothrow) Directory; // Allocate %Directory instance
TryCatch(pDir, res = false, "[osp-installer] pDir is null");
r = pDir->Construct(path);