Fix build of document_api_test.cpp

Compiler could not find notifyActiveDocumentChanged.

/home/aurelien/src/aseprite/src/./doc/test_context.h: In instantiation of ‘void doc::TestContextT<Base>::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);
This commit is contained in:
Aurélien Gâteau 2015-04-27 18:08:21 +02:00
parent db8f0e1f0d
commit ad1290b1c8

View File

@ -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: