X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_Translator.cpp;h=1c29d17657a230d4349605c96d6a37219d913e5b;hb=d7144bf137b2ea4f8c7bfbc6b678e1a762e98653;hp=40980d113b10dc13f002773bbc352e8761e564cb;hpb=5b6031b015602aa07f5a6fc668c13ac3faf7a8a9;p=modules%2Fshaper.git diff --git a/src/Config/Config_Translator.cpp b/src/Config/Config_Translator.cpp index 40980d113..1c29d1765 100644 --- a/src/Config/Config_Translator.cpp +++ b/src/Config/Config_Translator.cpp @@ -1,8 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: Config_Translator.cpp -// Created: 31 May 2016 -// Author: Vitaly SMETANNIKOV +// Copyright (C) 2014-2019 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 +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// 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 +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// #include "Config_Translator.h" #include "Config_XMLReader.h" @@ -15,6 +28,7 @@ #pragma warning(disable : 4996) // for sprintf #endif +// LCOV_EXCL_START /** * \class Config_TSReader * \ingroup Config @@ -104,6 +118,7 @@ bool Config_Translator::load(const std::string& theFileName) } return true; } +// LCOV_EXCL_STOP std::string Config_Translator::translate(const Events_InfoMessage& theInfo) { @@ -160,7 +175,7 @@ std::string Config_Translator::translate(const std::string& theContext, return aMsg; } - +// LCOV_EXCL_START std::string Config_Translator::codec(const std::string& theContext) { return (myCodecs.count(theContext) > 0)? myCodecs[theContext] : "UTF-8"; @@ -170,6 +185,7 @@ std::string Config_Translator::codec(const Events_InfoMessage& theInfo) { return codec(theInfo.context()); } +// LCOV_EXCL_STOP #ifdef _DEBUG #ifdef MISSED_TRANSLATION @@ -187,7 +203,7 @@ void Config_Translator::saveMissedTranslations() std::ofstream oFStream; // Delete old file - int aa = remove(aFile.c_str()); + remove(aFile.c_str()); oFStream.open(aFile, std::ofstream::out | std::ofstream::app); if (oFStream.is_open()) {