Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid crash on closing a viewer and deactivation of the module
[modules/shaper.git]
/
src
/
Config
/
Config_Translator.cpp
diff --git
a/src/Config/Config_Translator.cpp
b/src/Config/Config_Translator.cpp
index f215213e1b040b5cdb68464ea58b47bb304d7f15..1c29d17657a230d4349605c96d6a37219d913e5b 100644
(file)
--- a/
src/Config/Config_Translator.cpp
+++ b/
src/Config/Config_Translator.cpp
@@
-1,4
+1,4
@@
-// Copyright (C) 2014-201
7
CEA/DEN, EDF R&D
+// Copyright (C) 2014-201
9
CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-12,10
+12,9
@@
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA
//
//
-// See http://www.salome-platform.org/ or
-// email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#include "Config_Translator.h"
//
#include "Config_Translator.h"
@@
-77,7
+76,6
@@
void Config_TSReader::processNode(xmlNodePtr theNode)
myTranslator[aName][aSource] = aTranslat;
}
}
myTranslator[aName][aSource] = aTranslat;
}
}
-// LCOV_EXCL_STOP
//******************************************************************************
//******************************************************************************
//******************************************************************************
//******************************************************************************
@@
-120,6
+118,7
@@
bool Config_Translator::load(const std::string& theFileName)
}
return true;
}
}
return true;
}
+// LCOV_EXCL_STOP
std::string Config_Translator::translate(const Events_InfoMessage& theInfo)
{
std::string Config_Translator::translate(const Events_InfoMessage& theInfo)
{
@@
-176,7
+175,7
@@
std::string Config_Translator::translate(const std::string& theContext,
return aMsg;
}
return aMsg;
}
-
+// LCOV_EXCL_START
std::string Config_Translator::codec(const std::string& theContext)
{
return (myCodecs.count(theContext) > 0)? myCodecs[theContext] : "UTF-8";
std::string Config_Translator::codec(const std::string& theContext)
{
return (myCodecs.count(theContext) > 0)? myCodecs[theContext] : "UTF-8";
@@
-186,6
+185,7
@@
std::string Config_Translator::codec(const Events_InfoMessage& theInfo)
{
return codec(theInfo.context());
}
{
return codec(theInfo.context());
}
+// LCOV_EXCL_STOP
#ifdef _DEBUG
#ifdef MISSED_TRANSLATION
#ifdef _DEBUG
#ifdef MISSED_TRANSLATION