correction in parameter (const&)
This commit is contained in:
		@@ -9,6 +9,9 @@
 | 
			
		||||
    @license LGPL, see file <a href="license.html">COPYING</a>
 | 
			
		||||
 | 
			
		||||
    $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);
 | 
			
		||||
 
 | 
			
		||||
@@ -9,6 +9,9 @@
 | 
			
		||||
    @license LGPL, see file <a href="license.html">COPYING</a>
 | 
			
		||||
 | 
			
		||||
    $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 <mrw/auto.hpp>
 | 
			
		||||
@@ -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<bfd_vma, std::pair<bfd_vma, asection*> >
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user