aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2011-09-19 20:10:46 +0200
committerTorbjörn Andersson2011-09-19 20:10:46 +0200
commit642e0baacbe0ec24dff1871350d808b5c7beba16 (patch)
tree5a4dc96f5caaae5383e4fd655af8aa1c839ea9d8
parent6b8fb196cbd58e20ef57bf367d5ecbf0ee2ebdad (diff)
downloadscummvm-rg350-642e0baacbe0ec24dff1871350d808b5c7beba16.tar.gz
scummvm-rg350-642e0baacbe0ec24dff1871350d808b5c7beba16.tar.bz2
scummvm-rg350-642e0baacbe0ec24dff1871350d808b5c7beba16.zip
GUI: Silence GCC warning
Rename local variable 'buffer' to keep it from clashing with the buffer() method.
-rw-r--r--gui/console.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/console.cpp b/gui/console.cpp
index bfce04cbf6..dc2c5c4f33 100644
--- a/gui/console.cpp
+++ b/gui/console.cpp
@@ -665,11 +665,11 @@ int ConsoleDialog::printFormat(int dummy, const char *format, ...) {
}
int ConsoleDialog::vprintFormat(int dummy, const char *format, va_list argptr) {
- Common::String buffer = Common::String::vformat(format, argptr);
+ Common::String buf = Common::String::vformat(format, argptr);
- print(buffer.c_str());
+ print(buf.c_str());
- return buffer.size();
+ return buf.size();
}
void ConsoleDialog::printChar(int c) {