Fix coding style according to tizen rule
[platform/core/security/drm-service-core-tizen.git] / tadcore / DrmFileHandleMgr / DrmFileMgr.cpp
index f50e6b0..7a5ae5e 100644 (file)
@@ -41,7 +41,8 @@ DrmFileMgr *DrmFileMgr::GetInstance(void)
        if (m_pInstance != NULL)
                return m_pInstance;
 
-       m_pInstance = new (std::nothrow) DrmFileMgr();
+       m_pInstance = new(std::nothrow) DrmFileMgr();
+
        if (m_pInstance == NULL) {
                DRM_TAPPS_EXCEPTION("Creating DrmFileMgr m_pInstance failed.");
                return NULL;
@@ -76,7 +77,8 @@ int DrmFileMgr::OpenFileHandler(const char *filePath, int *key)
                return TADC_PARAMETER_ERROR;
        }
 
-       auto pDrmFileHandler = new (std::nothrow) DrmFileHandler();
+       auto pDrmFileHandler = new(std::nothrow) DrmFileHandler();
+
        if (pDrmFileHandler == NULL) {
                DRM_TAPPS_EXCEPTION("DrmFileHandler allocation failed.");
                return TADC_MEMAlOC_ERROR;
@@ -110,6 +112,7 @@ int DrmFileMgr::CloseFileHandler(int key)
        }
 
        auto &pHandler = m_HandlerMap[key];
+
        if (pHandler != NULL)
                delete pHandler;