From a96a07a7d43474152f45afec594fbda5f1281e2e Mon Sep 17 00:00:00 2001 From: jfa Date: Fri, 22 Jul 2005 10:05:13 +0000 Subject: [PATCH] Fix compilation errors --- src/VISU_I/VISU_Gen_i.cc | 2 +- src/VISU_I/VISU_TimeAnimation.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.2