bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/19793] New: script-sections.cc:1475: possible redundant string


From: dcb314 at hotmail dot com
Subject: [Bug gold/19793] New: script-sections.cc:1475: possible redundant string copy ?
Date: Wed, 09 Mar 2016 10:09:42 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=19793

            Bug ID: 19793
           Summary: script-sections.cc:1475: possible redundant string
                    copy ?
           Product: binutils
           Version: 2.27 (HEAD)
            Status: NEW
          Severity: minor
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: dcb314 at hotmail dot com
                CC: ian at airs dot com
  Target Milestone: ---

[src/gold/script-sections.cc:1475]: (performance) Function parameter 'name'
should be passed by reference.

Source code is

  void
  set_section_name(const std::string name)
  {

More usual would be

  void
  set_section_name(const std::string & name)
  {

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]