mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 01:51:38 +08:00
Clean qt_sink code
This commit is contained in:
parent
0f50ad92d6
commit
1f1897e3a4
@ -35,7 +35,7 @@ public:
|
||||
// store the meta method object for later usage
|
||||
qt_object_ = qt_object;
|
||||
auto *metaobject = qt_object_->metaObject();
|
||||
int methodIndex = metaobject->indexOfMethod(meta_method_name.c_str());
|
||||
auto methodIndex = metaobject->indexOfMethod(meta_method_name.c_str());
|
||||
if (methodIndex == -1) {
|
||||
throw_spdlog_ex("qt_sink: qt_object does not have meta_method " + meta_method_name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user