mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
Merge pull request #803 from fhuberts/fix-Winfinite-recursion
Fix compiler warnings (-Winfinite-recursion)
This commit is contained in:
commit
38e02370b9
@ -104,6 +104,9 @@ private:
|
||||
|
||||
void invalidate(const std::shared_ptr<TResource>& resource) override {
|
||||
auto proxy = std::static_pointer_cast<AcquisitionProxyImpl>(resource);
|
||||
if (proxy == nullptr) {
|
||||
return;
|
||||
}
|
||||
proxy->__pool__invalidate();
|
||||
const auto& handle = proxy->__pool__getUnderlyingResource();
|
||||
handle.invalidator->invalidate(handle.object);
|
||||
|
Loading…
Reference in New Issue
Block a user