|
@ -3,7 +3,7 @@ |
|
|
StorageEditor::StorageEditor() { } |
|
|
StorageEditor::StorageEditor() { } |
|
|
|
|
|
|
|
|
StorageEditor::StorageEditor(std::shared_ptr<WarenStorage> storage) { |
|
|
StorageEditor::StorageEditor(std::shared_ptr<WarenStorage> storage) { |
|
|
this->storage = std::make_shared<WarenStorage>(new WarenStorage()); |
|
|
|
|
|
|
|
|
this->storage = storage; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
std::shared_ptr<WarenStorage> StorageEditor::getWarenStorage() const { |
|
|
std::shared_ptr<WarenStorage> StorageEditor::getWarenStorage() const { |
|
@ -11,7 +11,8 @@ std::shared_ptr<WarenStorage> StorageEditor::getWarenStorage() const { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void StorageEditor::setWarenStorage(const WarenStorage storage) { |
|
|
void StorageEditor::setWarenStorage(const WarenStorage storage) { |
|
|
this->storage = std::make_shared<WarenStorage>(storage); |
|
|
|
|
|
|
|
|
//move might be unnecessary here
|
|
|
|
|
|
this->storage = std::make_shared<WarenStorage>(std::move(storage)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|