mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
-Wdeprecated-clean: Fix cases of violating the rule of 5 in ways that are deprecated in C++11
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243786 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
caf175c28c
commit
b4b38d65e6
1 file changed
+8
@@ -28,6 +28,10 @@ private:
|
|||||||
typedef std::vector<BaseLayerModuleSetHandleT> BaseLayerHandleList;
|
typedef std::vector<BaseLayerModuleSetHandleT> BaseLayerHandleList;
|
||||||
|
|
||||||
struct LogicalModule {
|
struct LogicalModule {
|
||||||
|
// Make this move-only to ensure they don't get duplicated across moves of
|
||||||
|
// LogicalDylib or anything like that.
|
||||||
|
LogicalModule(LogicalModule&&) = default;
|
||||||
|
LogicalModule() = default;
|
||||||
LogicalModuleResources Resources;
|
LogicalModuleResources Resources;
|
||||||
BaseLayerHandleList BaseLayerHandles;
|
BaseLayerHandleList BaseLayerHandles;
|
||||||
};
|
};
|
||||||
@@ -46,6 +50,10 @@ public:
|
|||||||
BaseLayer.removeModuleSet(BLH);
|
BaseLayer.removeModuleSet(BLH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If possible, remove this and ~LogicalDylib once the work in the dtor is
|
||||||
|
// moved to members (eg: self-unregistering base layer handles).
|
||||||
|
LogicalDylib(LogicalDylib&& RHS) = default;
|
||||||
|
|
||||||
LogicalModuleHandle createLogicalModule() {
|
LogicalModuleHandle createLogicalModule() {
|
||||||
LogicalModules.push_back(LogicalModule());
|
LogicalModules.push_back(LogicalModule());
|
||||||
return std::prev(LogicalModules.end());
|
return std::prev(LogicalModules.end());
|
||||||
|
|||||||
Reference in new issue
Block a user