[DEV] Change error display in the manager

This commit is contained in:
2012-11-02 21:32:15 +01:00
parent 8fdeb39b5a
commit 4514239076
6 changed files with 8 additions and 21 deletions

View File

@@ -513,7 +513,7 @@ static classBufferManager * localManager = NULL;
void BufferManager::Init(void)
{
if (NULL == localManager) {
if (NULL != localManager) {
EWOL_ERROR("classBufferManager ==> already exist, just unlink the previous ...");
localManager = NULL;
}

View File

@@ -364,7 +364,7 @@ static classColorManager * localManager = NULL;
void ColorizeManager::Init(void)
{
if (NULL == localManager) {
if (NULL != localManager) {
EWOL_ERROR("ColorizeManager ==> already exist, just unlink the previous ...");
localManager = NULL;
}

View File

@@ -172,7 +172,7 @@ static localClassHighlightManager * localManager = NULL;
void HighlightManager::Init(void)
{
if (NULL == localManager) {
if (NULL != localManager) {
APPL_ERROR("HighlightManager ==> already exist, just unlink the previous ...");
localManager = NULL;
}

View File

@@ -81,12 +81,11 @@ static CTagsManager* s_elementPointer = NULL;
void cTagsManager::Init(void)
{
if (NULL != s_elementPointer) {
delete(s_elementPointer);
s_elementPointer = NULL;
EWOL_WARNING("Ctags manager already instanciate ... ==> restart IT");
EWOL_WARNING("Ctags manager already instanciate ... ==> restart IT (can have memory leek ...)");
}
s_elementPointer = new CTagsManager();
if (NULL != s_elementPointer) {
if (NULL == s_elementPointer) {
EWOL_ERROR("Ctags manager error to instanciate ...");
}
}