X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FXGUI%2FXGUI_Tools.cpp;h=84e43abf37a498af1a52a8c1a7e768d1747af2f4;hb=9e869ede4d8c56262bb20534543c2bf56cd6a91b;hp=5672163dcf06273e50eaa790bec519328784fb9b;hpb=141af0409801857d641e2bf61cd414b373e65b0b;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_Tools.cpp b/src/XGUI/XGUI_Tools.cpp index 5672163dc..84e43abf3 100644 --- a/src/XGUI/XGUI_Tools.cpp +++ b/src/XGUI/XGUI_Tools.cpp @@ -9,8 +9,7 @@ #include #include -namespace XGUI_Tools -{ +namespace XGUI_Tools { //****************************************************************** QString dir(const QString& path, bool isAbs) { @@ -25,7 +24,7 @@ QString dir(const QString& path, bool isAbs) QString file(const QString& path, bool withExt) { QString fPath = path; - while(!fPath.isEmpty() && (fPath[fPath.length() - 1] == '\\' || fPath[fPath.length() - 1] == '/')) + while (!fPath.isEmpty() && (fPath[fPath.length() - 1] == '\\' || fPath[fPath.length() - 1] == '/')) fPath.remove(fPath.length() - 1, 1); if (withExt) @@ -65,7 +64,7 @@ bool isModelObject(FeaturePtr theFeature) //****************************************************************** std::string featureInfo(FeaturePtr theFeature) { - std::ostringstream aStream; + std::ostringstream aStream; if (theFeature) aStream << theFeature.get() << " " << theFeature->getKind(); return QString(aStream.str().c_str()).toStdString(); @@ -73,14 +72,13 @@ std::string featureInfo(FeaturePtr theFeature) //****************************************************************** /*FeaturePtr realFeature(const FeaturePtr theFeature) -{ - if (theFeature->data()) { - return theFeature; - } else { - ObjectPtr aObject = boost::dynamic_pointer_cast(theFeature); - return aObject->featureRef(); - } -}*/ - + { + if (theFeature->data()) { + return theFeature; + } else { + ObjectPtr aObject = std::dynamic_pointer_cast(theFeature); + return aObject->featureRef(); + } + }*/ }