[ox] Remove OxError
This commit is contained in:
8
deps/ox/src/ox/event/test/tests.cpp
vendored
8
deps/ox/src/ox/event/test/tests.cpp
vendored
@@ -17,7 +17,7 @@ struct TestStruct: public ox::SignalHandler {
|
||||
int value = 0;
|
||||
ox::Error method(int i) noexcept {
|
||||
value = i;
|
||||
return OxError(0);
|
||||
return ox::Error(0);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -27,13 +27,13 @@ std::map<ox::StringView, std::function<ox::Error()>> tests = {
|
||||
[] {
|
||||
ox::Signal<ox::Error(int)> signal;
|
||||
signal.connect([](int i) -> ox::Error {
|
||||
return OxError(i != 5);
|
||||
return ox::Error(i != 5);
|
||||
});
|
||||
TestStruct ts;
|
||||
signal.connect(&ts, &TestStruct::method);
|
||||
oxReturnError(signal.emitCheckError(5));
|
||||
oxReturnError(OxError(ts.value != 5));
|
||||
return OxError(0);
|
||||
oxReturnError(ox::Error(ts.value != 5));
|
||||
return ox::Error(0);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user