r17679 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17678‎ | r17679 | r17680 >
Date:19:45, 14 November 2006
Author:river
Status:old
Tags:
Comment:
imstring missing dtor (duh)
Modified paths:
  • /trunk/willow/src/include/willow.h (modified) (history)

Diff [purge]

Index: trunk/willow/src/include/willow.h
@@ -146,6 +146,7 @@
147147 basic_imstring(charT const *);
148148 basic_imstring(charT const *, size_type);
149149 basic_imstring(basic_imstring const &);
 150+ ~basic_imstring(void);
150151
151152 template<typename Sallocator>
152153 basic_imstring(basic_string<charT, char_traits<charT>, Sallocator> const &);
@@ -198,6 +199,13 @@
199200 typedef basic_imstring<char, pt_allocator<char> > imstring;
200201
201202 template<typename charT, typename allocator>
 203+basic_imstring<charT, allocator>::~basic_imstring(void)
 204+{
 205+ if (_buf)
 206+ _alloc.deallocate(_buf, _len);
 207+}
 208+
 209+template<typename charT, typename allocator>
202210 basic_imstring<charT, allocator>::basic_imstring(void)
203211 : _buf(NULL)
204212 , _len(0)