Salome HOME
projects
/
modules
/
kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'V8_5_BR'
[modules/kernel.git]
/
src
/
SALOMESDS
/
SALOMESDS_Exception.cxx
diff --git
a/src/SALOMESDS/SALOMESDS_Exception.cxx
b/src/SALOMESDS/SALOMESDS_Exception.cxx
index 5493bbf2d0bf849e9da5923c02fdc51bd14b2756..d5ddd8447d08bce863937b4eeacd7ace86b702fa 100644
(file)
--- a/
src/SALOMESDS/SALOMESDS_Exception.cxx
+++ b/
src/SALOMESDS/SALOMESDS_Exception.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
4
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-201
6
CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-21,12
+21,20
@@
#include "SALOMESDS_Exception.hxx"
SALOMESDS::Exception::Exception(const std::string& reason)
#include "SALOMESDS_Exception.hxx"
SALOMESDS::Exception::Exception(const std::string& reason)
+{
+ this->assign(reason.c_str());
+}
+
+SALOMESDS::Exception::Exception(const char *reason)
+{
+ this->assign(reason);
+}
+
+void SALOMESDS::Exception::assign(const char *reason)
{
SALOME::ExceptionStruct es;
es.type=SALOME::INTERNAL_ERROR;
{
SALOME::ExceptionStruct es;
es.type=SALOME::INTERNAL_ERROR;
- es.text=CORBA::string_dup(reason
.c_str()
);
+ es.text=CORBA::string_dup(reason);
es.lineNumber=0;
(*this).details=es;
}
es.lineNumber=0;
(*this).details=es;
}
-
-