Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2020-01-13 19:26:02 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-01-13 19:26:02 +0300
commitc8d8380a2c6679ef0170d374d5f34354616e0e10 (patch)
tree4dc43a67edf60567ace4718a45a771f2018ad872 /src/Storage
parent36a72fd1cbc274a6f932294f184133e08d681858 (diff)
Various
FreelistManager in RRFLibraries now has its own namespace Class GCodeMachineState now uses FreelistManager to manage its storage Leading tabs are treated as going to the next multiple of 4 spaces from start of line or end of line number etc. Generate warning if both tabs and spaces are used to indent blocks
Diffstat (limited to 'src/Storage')
-rw-r--r--src/Storage/FileData.h23
1 files changed, 9 insertions, 14 deletions
diff --git a/src/Storage/FileData.h b/src/Storage/FileData.h
index beaadbf8..aa472239 100644
--- a/src/Storage/FileData.h
+++ b/src/Storage/FileData.h
@@ -23,6 +23,15 @@ public:
FileData() noexcept : f(nullptr) {}
+ FileData(const FileData& other) noexcept
+ {
+ f = other.f;
+ if (f != nullptr)
+ {
+ f->Duplicate();
+ }
+ }
+
// Set this to refer to a newly-opened file
void Set(FileStore* pfile) noexcept
{
@@ -99,17 +108,6 @@ public:
return f->Length();
}
- // Assignment operator
- void CopyFrom(const FileData& other) noexcept
- {
- Close();
- f = other.f;
- if (f != nullptr)
- {
- f->Duplicate();
- }
- }
-
// Move operator
void MoveFrom(FileData& other) noexcept
{
@@ -128,9 +126,6 @@ private:
// Private assignment operator to prevent us assigning these objects
FileData& operator=(const FileData&) noexcept;
-
- // Private copy constructor to prevent us copying these objects
- FileData(const FileData&) noexcept;
};
#endif