From ac13946ffbec538f5fc193843fae7dd513b9c58e Mon Sep 17 00:00:00 2001 From: couriersud Date: Thu, 30 Mar 2017 20:20:00 +0200 Subject: Change pstring to use std::string as storage container. This removes all allocation code from pstring. const_iterator is consequently now based on pstring::const_iterator. Removed pstring_buffer. This was class wasn't a good idea. Vas was right: This change did not impact runtime performance. Startup performance (string intensive) increased. (nw) --- src/lib/netlist/plib/pfmtlog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/netlist/plib/pfmtlog.cpp') diff --git a/src/lib/netlist/plib/pfmtlog.cpp b/src/lib/netlist/plib/pfmtlog.cpp index edcc2544f7a..86d059d9247 100644 --- a/src/lib/netlist/plib/pfmtlog.cpp +++ b/src/lib/netlist/plib/pfmtlog.cpp @@ -24,7 +24,7 @@ plog_dispatch_intf::~plog_dispatch_intf() pfmt::pfmt(const pstring &fmt) : m_str(m_str_buf), m_allocated(0), m_arg(0) { - std::size_t l = fmt.blen() + 1; + std::size_t l = fmt.size() + 1; if (l>sizeof(m_str_buf)) { m_allocated = 2 * l; -- cgit v1.2.3-70-g09d2