diff --git a/mrw/stacktrace.cpp b/mrw/stacktrace.cpp
index e2fcff8..456530d 100644
--- a/mrw/stacktrace.cpp
+++ b/mrw/stacktrace.cpp
@@ -9,6 +9,9 @@
@license LGPL, see file COPYING
$Log$
+ Revision 1.4 2004/10/07 09:32:45 marc
+ correction in parameter (const&)
+
Revision 1.3 2004/08/28 16:21:25 marc
mrw-c++-0.92 (mrw)
- new file: version.cpp
@@ -177,7 +180,7 @@ namespace mrw {
}
//----------------------------------------------------------------------------
- bool StackTrace::createSymtable(std::string fname) throw(std::bad_exception) {
+ bool StackTrace::createSymtable(const std::string& fname) throw(std::bad_exception) {
if (_dic.get()) return true;
AutoBfd abfd(bfd_openr((fname!="" ? fname : filename()).c_str(), 0));
long memsz(-1);
diff --git a/mrw/stacktrace.hpp b/mrw/stacktrace.hpp
index a671211..b7896c7 100644
--- a/mrw/stacktrace.hpp
+++ b/mrw/stacktrace.hpp
@@ -9,6 +9,9 @@
@license LGPL, see file COPYING
$Log$
+ Revision 1.5 2004/10/07 09:32:45 marc
+ correction in parameter (const&)
+
Revision 1.4 2004/08/28 16:21:25 marc
mrw-c++-0.92 (mrw)
- new file: version.cpp
@@ -23,7 +26,6 @@
- possibility to compile without stack trace
*/
-// g++ -Wall -D__SOLARIS__ -g -I /home/public/freeware/include -L /home/public/freeware/lib -I . stacktrace.cxx -lbfd -liberty
#ifndef __MRW_STACKTRACE_HPP__
#define __MRW_STACKTRACE_HPP__
#include
@@ -175,7 +177,7 @@ namespace mrw {
/** @brief read the symbol table from the executable file
- @param std::string The file name of the executable. On Linux
+ @param fname The file name of the executable. On Linux
and Solaris, this can be evaluated automatically, so the
parameter is optional.
@@ -193,7 +195,7 @@ namespace mrw {
are created only the first time, so you don't loose too much
time.
*/
- static bool createSymtable(std::string = "") throw(std::bad_exception);
+ static bool createSymtable(const std::string& fname="") throw(std::bad_exception);
private:
//............................................................... typedefs
typedef std::map >