From ad1290b1c8e236c92436d32e3c7442d8fbb88048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Mon, 27 Apr 2015 18:08:21 +0200 Subject: [PATCH] Fix build of document_api_test.cpp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Compiler could not find notifyActiveDocumentChanged. /home/aurelien/src/aseprite/src/./doc/test_context.h: In instantiation of ‘void doc::TestContextT::onRemoveDocument(doc::Document*) [with Base = app::Context]’: /home/aurelien/src/aseprite/src/app/document_api_tests.cpp:66:1: required from here /home/aurelien/src/aseprite/src/./doc/test_context.h:44:58: error: ‘notifyActiveDocumentChanged’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] notifyActiveDocumentChanged(m_activeDoc = nullptr); --- src/doc/test_context.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doc/test_context.h b/src/doc/test_context.h index a51aed278..eeb672073 100644 --- a/src/doc/test_context.h +++ b/src/doc/test_context.h @@ -36,12 +36,12 @@ namespace doc { } void onAddDocument(Document* doc) override { - notifyActiveDocumentChanged(m_activeDoc = doc); + this->notifyActiveDocumentChanged(m_activeDoc = doc); } void onRemoveDocument(Document* doc) override { if (m_activeDoc == doc) - notifyActiveDocumentChanged(m_activeDoc = nullptr); + this->notifyActiveDocumentChanged(m_activeDoc = nullptr); } private: