]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/XGUI/XGUI_Tools.cpp
Salome HOME
Issue #1860: fix end lines with spaces
[modules/shaper.git] / src / XGUI / XGUI_Tools.cpp
index 02beb1150148a9f2bda3783b9910e64421d84dcf..cd310eef0b4351b893282063740d80f47618ed6e 100644 (file)
@@ -44,7 +44,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] == '\\' || 
+  while (!fPath.isEmpty() && (fPath[fPath.length() - 1] == '\\' ||
           fPath[fPath.length() - 1] == '/'))
     fPath.remove(fPath.length() - 1, 1);
 
@@ -131,12 +131,12 @@ bool canRename(const ObjectPtr& theObject, const QString& theName)
   if (std::dynamic_pointer_cast<ModelAPI_ResultParameter>(theObject).get()) {
     double aValue;
     ResultParameterPtr aParam;
-    if (ModelAPI_Tools::findVariable(theObject->document(), 
+    if (ModelAPI_Tools::findVariable(theObject->document(),
           FeaturePtr(), qPrintable(theName), aValue, aParam)) {
       const char* aKeyStr = "Selected parameter can not be renamed to: %1. "
                             "There is a parameter with the same name. Its value is: %2.";
       QString aErrMsg(QObject::tr(aKeyStr).arg(qPrintable(theName)).arg(aValue));
-      // We can not use here a dialog box for message - 
+      // We can not use here a dialog box for message -
       // it will crash editing process in ObjectBrowser
       Events_InfoMessage("XGUI_Tools", aErrMsg.toStdString()).send();
       return false;