summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fontwrapper-ft.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-08-28 01:37:07 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-08-28 01:37:07 +0200
commit02ef691263a4ca800b01530e73f4d2ddd9cce23b (patch)
treee051a95a1aaedbba92e52fe34ded31e4bd1ed206 /crawl-ref/source/fontwrapper-ft.cc
parent5bb725201a068fa211b165a8b6c1e1694d335d7e (diff)
downloadcrawl-ref-02ef691263a4ca800b01530e73f4d2ddd9cce23b.tar.gz
crawl-ref-02ef691263a4ca800b01530e73f4d2ddd9cce23b.zip
Use unique_ptr instead of auto_ptr (emulated for non-C++11).
This stops the tons of warnings, while allowing building for both old and new C++ standards. And if we wanted to use shared_ptr or something, now we can without being ambiguous.
Diffstat (limited to 'crawl-ref/source/fontwrapper-ft.cc')
-rw-r--r--crawl-ref/source/fontwrapper-ft.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/fontwrapper-ft.cc b/crawl-ref/source/fontwrapper-ft.cc
index 7de49cadc7..6f868534e3 100644
--- a/crawl-ref/source/fontwrapper-ft.cc
+++ b/crawl-ref/source/fontwrapper-ft.cc
@@ -470,7 +470,7 @@ static void _draw_box(int x_pos, int y_pos, float width, float height,
float box_width, unsigned char box_colour,
unsigned char box_alpha)
{
- auto_ptr<GLShapeBuffer> buf(GLShapeBuffer::create(false, true));
+ unique_ptr<GLShapeBuffer> buf(GLShapeBuffer::create(false, true));
GLWPrim rect(x_pos - box_width, y_pos - box_width,
x_pos + width + box_width, y_pos + height + box_width);