• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonbathyscaphephpgamewindowsguic翻訳omegattwitterframeworktestbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

New lambda-based xUnit-style unit-testing framework for C++.


Commit MetaInfo

Revisão1db9bba546b91234ffb516a734f0105a11071be3 (tree)
Hora2020-01-23 20:06:23
AutorKaz Nishimura <kazssym@linu...>
CommiterKaz Nishimura

Mensagem de Log

Modify type aliasing

Mudança Sumário

Diff

diff -r e224542c3a0d -r 1db9bba546b9 libcppunitx/driver.cpp
--- a/libcppunitx/driver.cpp Thu Jan 23 20:03:20 2020 +0900
+++ b/libcppunitx/driver.cpp Thu Jan 23 20:06:23 2020 +0900
@@ -86,9 +86,9 @@
8686
8787 void TestDriver::run(const char *const suiteName)
8888 {
89- typedef TestRegistry *(*getRegistryFunction)();
89+ using GetRegistryFunction = TestRegistry *();
9090 module suite(suiteName);
91- auto getRegistry = reinterpret_cast<getRegistryFunction>(
91+ auto getRegistry = reinterpret_cast<GetRegistryFunction *>(
9292 lt_dlsym(suite.handle, "cppunitx_registry"));
9393 if (getRegistry == nullptr) {
9494 throw runtime_error(string(suiteName) + ": Not test suite module");