From 139f675edea46fba9be004d60cab9afb41e912b8 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Tue, 1 Jun 2010 08:08:33 +0000 Subject: [PATCH] Add a return value to LogSink::Subscribe to make msvc happy. Originally committed to SVN as r4396. --- aegisub/libaegisub/common/log.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aegisub/libaegisub/common/log.cpp b/aegisub/libaegisub/common/log.cpp index e2854173e..a76f83efa 100644 --- a/aegisub/libaegisub/common/log.cpp +++ b/aegisub/libaegisub/common/log.cpp @@ -110,7 +110,9 @@ void EmitSTDOUT::log(SinkMessage *sm) { int LogSink::Subscribe(Emitter &em) { emitters.push_back(&em); emit = 1; - + /// @todo This won't work since removing it will cause the id's to change, + /// it's good enough while this is being written. + return emitters.size(); }