Fixed signatures of deleted assignment operators (#408)

While it technically doesn't matter what the return type of the assignment operator is since it's deleted, assignment operators should return a reference instead of a value.
This commit is contained in:
Tyler Veness
2016-12-19 11:24:23 -08:00
committed by Peter Johnson
parent d0900626da
commit 31ae7c942c
6 changed files with 20 additions and 14 deletions

View File

@@ -38,9 +38,10 @@ class IndexedHandleResource {
friend class IndexedHandleResourceTest;
public:
IndexedHandleResource(const IndexedHandleResource&) = delete;
IndexedHandleResource operator=(const IndexedHandleResource&) = delete;
IndexedHandleResource() = default;
IndexedHandleResource(const IndexedHandleResource&) = delete;
IndexedHandleResource& operator=(const IndexedHandleResource&) = delete;
THandle Allocate(int16_t index, int32_t* status);
std::shared_ptr<TStruct> Get(THandle handle);
void Free(THandle handle);