From 31a548f0785ec0e83f762904da2e93aef1fcc50d Mon Sep 17 00:00:00 2001
From: Kouhei Sutou <kou@clear-code.com>
Date: Sat, 16 Jan 2016 18:35:04 +0900
Subject: [PATCH] cppcutter: stop to use inline instance method in destructor
GitHub: fix #23
Reported by HAYASHI Kentaro. Thanks!!!
Signed-off-by: HAYASHI Kentaro <kenhys@gmail.com>
---
cppcutter/cppcut-message.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cppcutter/cppcut-message.cpp b/cppcutter/cppcut-message.cpp
index 169431c..463f4fa 100644
--- a/cppcutter/cppcut-message.cpp
+++ b/cppcutter/cppcut-message.cpp
@@ -1,6 +1,6 @@
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
- * Copyright (C) 2009 Kouhei Sutou <kou@clear-code.com>
+ * Copyright (C) 2009-2016 Kouhei Sutou <kou@clear-code.com>
*
* This library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
@@ -44,7 +44,7 @@ cut::Message::printf(const char *format, ...)
cut::Message::~Message()
{
- cut_message("%s", this->string());
+ cut_message("%s", buffer_.str().c_str());
}
/*
--
2.7.0.rc3