X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FUtils%2FOpUtil.cxx;h=323f0e87cd16b7dc6aaadfe1f8ed7e2b622c8f81;hb=7a07650dd1f183f5af156c1235cc1d67061813ec;hp=43052f7318bd62c5d6b0c53bb7ac355bd2608509;hpb=e6bfea36374791cd31c274a2f97df90dc60ddaf3;p=modules%2Fkernel.git diff --git a/src/Utils/OpUtil.cxx b/src/Utils/OpUtil.cxx index 43052f731..323f0e87c 100644 --- a/src/Utils/OpUtil.cxx +++ b/src/Utils/OpUtil.cxx @@ -1,29 +1,29 @@ -// SALOME Utils : general SALOME's definitions and tools +// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE // -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// 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. -// -// 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 +// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// 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. // +// 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 // + +// SALOME Utils : general SALOME's definitions and tools // File : OpUtil.cxx // Module : SALOME - +// #include "utilities.h" #include "OpUtil.hxx" #include @@ -34,7 +34,7 @@ #else #include #endif -using namespace std; + //int gethostname(char *name, size_t len); std::string GetHostname() @@ -49,7 +49,7 @@ std::string GetHostname() switch (r) { case 0: - break; + break; default: #ifdef EINVAL case EINVAL: @@ -58,7 +58,7 @@ std::string GetHostname() case ENAMETOOLONG: #endif delete [] s; - continue; + continue; } } @@ -71,7 +71,7 @@ std::string GetHostname() char *aDot = (strchr(s,'.')); if (aDot) aDot[0] = '\0'; - string p = s; + std::string p = s; delete [] s; return p; }