Browse Source

Fix SharedResourcePointer includes

tags/v1.9.9
falkTX 6 years ago
parent
commit
2a5b714a1e
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      source/modules/water/memory/SharedResourcePointer.h

+ 3
- 1
source/modules/water/memory/SharedResourcePointer.h View File

@@ -26,7 +26,8 @@
#ifndef WATER_SHAREDRESOURCEPOINTER_H_INCLUDED
#define WATER_SHAREDRESOURCEPOINTER_H_INCLUDED
#include "../water.h"
#include "ReferenceCountedObject.h"
#include "../threads/SpinLock.h"
namespace water {
@@ -125,6 +126,7 @@ public:
The pointer returned may be a nullptr, of course.
*/
SharedObjectType& getObject() const noexcept { return *sharedObject; }
SharedObjectType* getPointer() const noexcept { return sharedObject; }
SharedObjectType* operator->() const noexcept { return sharedObject; }


Loading…
Cancel
Save