From e41d2c731363e31c5be11a07ae574e6c946d7d5e Mon Sep 17 00:00:00 2001 From: asv Date: Fri, 5 Aug 2005 11:04:55 +0000 Subject: [PATCH] modifications that make sources compilable without support of STL by Qt. --- src/VISUGUI/VisuGUI.cxx | 4 ++-- src/VISUGUI/VisuGUI_EditContainerDlg.cxx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 5b874110..403a4612 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -316,11 +316,11 @@ OnExportTableToFile() if (isTOR) { _PTR(AttributeTableOfReal) aTabAttr (anAttr); if (!aTabAttr) return; - aTitle = aTabAttr->GetTitle(); + aTitle = aTabAttr->GetTitle().c_str(); } else { _PTR(AttributeTableOfInteger) aTabAttr (anAttr); if (!aTabAttr) return; - aTitle = aTabAttr->GetTitle(); + aTitle = aTabAttr->GetTitle().c_str(); } aTitle.simplifyWhiteSpace(); aTitle = aTitle.replace(QRegExp(" "), "_"); diff --git a/src/VISUGUI/VisuGUI_EditContainerDlg.cxx b/src/VISUGUI/VisuGUI_EditContainerDlg.cxx index 353944e5..eed32a53 100644 --- a/src/VISUGUI/VisuGUI_EditContainerDlg.cxx +++ b/src/VISUGUI/VisuGUI_EditContainerDlg.cxx @@ -320,7 +320,7 @@ void VisuGUI_EditContainerDlg::initFromPrsObject (VISU::Container_i* theContaine CurveStruct aEntry; aEntry.TableName = getSObjectName(aTableSO); aEntry.CurveName = getSObjectName(aSObject); - aEntry.CurveEntry = aSObject->GetID(); + aEntry.CurveEntry = aSObject->GetID().c_str(); aStudyCurves.append(aEntry); } } @@ -346,7 +346,7 @@ void VisuGUI_EditContainerDlg::storeToPrsObject (VISU::Container_i* theContainer _PTR(Study) aStudy = VISU::GetCStudy(VISU::GetAppStudy(myVisuGUI)); QListViewItem* anItem = myContainerLst->firstChild(); while (anItem) { - _PTR(SObject) aCurveSO = aStudy->FindObjectID(anItem->text(2)); + _PTR(SObject) aCurveSO = aStudy->FindObjectID(anItem->text(2).latin1()); if (aCurveSO) { CORBA::Object_var aObject = VISU::ClientSObjectToObject(aCurveSO); if (!CORBA::is_nil(aObject)) { @@ -365,7 +365,7 @@ QString VisuGUI_EditContainerDlg::getSObjectName (_PTR(SObject) theSObject) _PTR(GenericAttribute) anAttr; if (theSObject->FindAttribute(anAttr, "AttributeName")) { _PTR(AttributeName) aName (anAttr); - return QString(aName->Value()); + return QString(aName->Value().c_str()); } return QString(""); } -- 2.39.2