From 3e169dc3f06f718eab93938c7a756104b846a1a6 Mon Sep 17 00:00:00 2001 From: Stan Cox Date: Thu, 12 Jun 2008 10:51:50 -0400 Subject: Make print_warning parm a const. --- ChangeLog | 4 ++++ elaborate.cxx | 2 +- session.h | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4a2b75db..099e42e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-06-12 Stan Cox + + * elaborate.cxx (print_warning): Make parameter a const. + 2008-06-11 Frank Ch. Eigler * Makefile.am (EXTRA_DIST): Add dwarf_wrappers.h. diff --git a/elaborate.cxx b/elaborate.cxx index d0665c90..e9746cdd 100644 --- a/elaborate.cxx +++ b/elaborate.cxx @@ -1229,7 +1229,7 @@ systemtap_session::print_error (const semantic_error& e) } void -systemtap_session::print_warning (string message_str) +systemtap_session::print_warning (const string& message_str) { // Duplicate elimination if (seen_warnings.find (message_str) == seen_warnings.end()) diff --git a/session.h b/session.h index ba945149..2b6ac79d 100644 --- a/session.h +++ b/session.h @@ -167,7 +167,7 @@ struct systemtap_session unsigned num_errors () { return seen_errors.size(); } // void print_error (const parse_error& e); void print_error (const semantic_error& e); - void print_warning (std::string w); + void print_warning (const std::string& w); // reNB: new POD members likely need to be explicitly cleared in the ctor. }; -- cgit