From: jfa Date: Fri, 22 Jul 2005 10:05:13 +0000 (+0000) Subject: Fix compilation errors X-Git-Tag: V3_0_1~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a96a07a7d43474152f45afec594fbda5f1281e2e;p=modules%2Fvisu.git Fix compilation errors --- diff --git a/src/VISU_I/VISU_Gen_i.cc b/src/VISU_I/VISU_Gen_i.cc index 894b5581..d1b47cf3 100644 --- a/src/VISU_I/VISU_Gen_i.cc +++ b/src/VISU_I/VISU_Gen_i.cc @@ -439,7 +439,7 @@ namespace VISU{ MESSAGE("!!! anApp->onLoadDoc(myStudyName) !!!"); // Has to be loaded in an empty or in a new application SalomeApp_Application* anApp = dynamic_cast(aFirstApp); - anApp->onLoadDoc(myStudyName); + anApp->onLoadDoc(myStudyName.c_str()); } } }; diff --git a/src/VISU_I/VISU_TimeAnimation.cxx b/src/VISU_I/VISU_TimeAnimation.cxx index 95f43444..0e34ef3f 100644 --- a/src/VISU_I/VISU_TimeAnimation.cxx +++ b/src/VISU_I/VISU_TimeAnimation.cxx @@ -702,7 +702,7 @@ void VISU_TimeAnimation::saveAnimation() if (myStudy->GetProperties()->IsLocked()) return; if (myAnimEntry.isEmpty()) return; - _PTR(SObject) aAnimSObject = myStudy->FindObjectID(myAnimEntry); + _PTR(SObject) aAnimSObject = myStudy->FindObjectID(myAnimEntry.latin1()); if (!aAnimSObject) return; _PTR(StudyBuilder) aStudyBuilder = myStudy->NewBuilder(); @@ -717,7 +717,7 @@ void VISU_TimeAnimation::saveAnimation() _PTR(GenericAttribute) anAttr; anAttr = aStudyBuilder->FindOrCreateAttribute(aAnimSObject, "AttributeComment"); _PTR(AttributeComment) aCmnt (anAttr); - aCmnt->SetValue(aComment); + aCmnt->SetValue(aComment.latin1()); _PTR(ChildIterator) anIter = myStudy->NewChildIterator(aAnimSObject); int i;