From 1864f9aa75e62d4e5d0abf3f12ac7575af5a359f Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Fri, 28 Jun 2013 22:13:21 +0200 Subject: [PATCH] [DEV] a little change in the exml lib --- sources/appl/Colorize/ColorizeManager.cpp | 12 ++++++------ sources/appl/Highlight/Highlight.cpp | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sources/appl/Colorize/ColorizeManager.cpp b/sources/appl/Colorize/ColorizeManager.cpp index a691ce1..509cc00 100644 --- a/sources/appl/Colorize/ColorizeManager.cpp +++ b/sources/appl/Colorize/ColorizeManager.cpp @@ -157,7 +157,7 @@ void classColorManager::LoadFile(const etk::UString& _xmlFilename) continue; } if (pGuiNode->GetValue()!="color") { - APPL_ERROR("(l "<Pos()<<") node not suported : \""<GetValue()<<"\" must be [color]"); + APPL_ERROR("(l "<GetPos()<<") node not suported : \""<GetValue()<<"\" must be [color]"); continue; } //-------------------------------------------------------------------------------------------- @@ -165,7 +165,7 @@ void classColorManager::LoadFile(const etk::UString& _xmlFilename) //-------------------------------------------------------------------------------------------- etk::UString colorName = pGuiNode->GetAttribute("name"); if (colorName.Size()==0) { - APPL_ERROR("(l "<< pGuiNode->Pos() <<") node with no name"); + APPL_ERROR("(l "<< pGuiNode->GetPos() <<") node with no name"); continue; } int32_t id = 0; @@ -190,7 +190,7 @@ void classColorManager::LoadFile(const etk::UString& _xmlFilename) } else if (colorName=="LIST_textModify") { id = COLOR_LIST_TEXT_MODIFY; } else { - APPL_ERROR("(l "<Pos()<<") Unknown basic gui color : \"" << colorName << "\"" ); + APPL_ERROR("(l "<GetPos()<<") Unknown basic gui color : \"" << colorName << "\"" ); continue; } etk::UString color = pGuiNode->GetAttribute("val"); @@ -205,7 +205,7 @@ void classColorManager::LoadFile(const etk::UString& _xmlFilename) continue; } if (pGuiNode->GetValue()!="color") { - APPL_ERROR(PFX"(l "<Pos()<<") node not suported : \""<GetValue()<<"\" must be [color]"); + APPL_ERROR(PFX"(l "<GetPos()<<") node not suported : \""<GetValue()<<"\" must be [color]"); continue; } //-------------------------------------------------------------------------------------------- @@ -214,12 +214,12 @@ void classColorManager::LoadFile(const etk::UString& _xmlFilename) // get the name of the Chaine etk::UString colorName = pGuiNode->GetAttribute("name"); if (colorName.Size()==0) { - APPL_ERROR(PFX"(l "<< pGuiNode->Pos() <<") node with no name"); + APPL_ERROR(PFX"(l "<< pGuiNode->GetPos() <<") node with no name"); continue; } Colorize* myNewColor = new Colorize(); if (NULL==myNewColor) { - APPL_ERROR(PFX"(l "<< pGuiNode->Pos() <<") ==> allocation error"); + APPL_ERROR(PFX"(l "<< pGuiNode->GetPos() <<") ==> allocation error"); continue; } myNewColor->SetName(colorName); diff --git a/sources/appl/Highlight/Highlight.cpp b/sources/appl/Highlight/Highlight.cpp index 34ff5f4..bcf3c9a 100644 --- a/sources/appl/Highlight/Highlight.cpp +++ b/sources/appl/Highlight/Highlight.cpp @@ -63,7 +63,7 @@ Highlight::Highlight(const etk::UString& _xmlFilename) continue; } if (passChild->GetValue() != "rule") { - APPL_ERROR("(l "<< passChild->Pos() << ") node not suported : \""<< passChild->GetValue() << "\" must be [rule]" ); + APPL_ERROR("(l "<< passChild->GetPos() << ") node not suported : \""<< passChild->GetValue() << "\" must be [rule]" ); continue; } ParseRules(passChild, m_listHighlightPass1, level1++); @@ -76,13 +76,13 @@ Highlight::Highlight(const etk::UString& _xmlFilename) continue; } if (passChild->GetValue() != "rule") { - APPL_ERROR("(l "<< passChild->Pos() << ") node not suported : \""<< passChild->GetValue() << "\" must be [rule]" ); + APPL_ERROR("(l "<< passChild->GetPos() << ") node not suported : \""<< passChild->GetValue() << "\" must be [rule]" ); continue; } ParseRules(passChild, m_listHighlightPass2, level2++); } } else { - APPL_ERROR("(l "<< child->Pos() << ") node not suported : \""<< child->GetValue() << "\" must be [ext,pass1,pass2]" ); + APPL_ERROR("(l "<< child->GetPos() << ") node not suported : \""<< child->GetValue() << "\" must be [ext,pass1,pass2]" ); } } }