dtoolutil: give DSearchPath a defaulted move constructor
This commit is contained in:
parent
b64e850539
commit
aacafe7be3
|
|
@ -116,13 +116,6 @@ write(ostream &out, int indent_level) const {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an empty search path.
|
||||
*/
|
||||
DSearchPath::
|
||||
DSearchPath() {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
|
@ -139,30 +132,6 @@ DSearchPath(const Filename &directory) {
|
|||
append_directory(directory);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
DSearchPath::
|
||||
DSearchPath(const DSearchPath ©) :
|
||||
_directories(copy._directories)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
void DSearchPath::
|
||||
operator = (const DSearchPath ©) {
|
||||
_directories = copy._directories;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
DSearchPath::
|
||||
~DSearchPath() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes all the directories from the search list.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -52,12 +52,15 @@ PUBLISHED:
|
|||
Files _files;
|
||||
};
|
||||
|
||||
DSearchPath();
|
||||
DSearchPath() = default;
|
||||
DSearchPath(const std::string &path, const std::string &separator = std::string());
|
||||
DSearchPath(const Filename &directory);
|
||||
DSearchPath(const DSearchPath ©);
|
||||
void operator = (const DSearchPath ©);
|
||||
~DSearchPath();
|
||||
DSearchPath(const DSearchPath ©) = default;
|
||||
DSearchPath(DSearchPath &&from) = default;
|
||||
~DSearchPath() = default;
|
||||
|
||||
DSearchPath &operator = (const DSearchPath ©) = default;
|
||||
DSearchPath &operator = (DSearchPath &&from) = default;
|
||||
|
||||
void clear();
|
||||
void append_directory(const Filename &directory);
|
||||
|
|
|
|||
Loading…
Reference in New Issue