mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-05 21:57:20 +00:00
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:
parent
db8f0e1f0d
commit
ad1290b1c8
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user