Commit 693b05fc authored by Victor Poughon's avatar Victor Poughon

BUG: fix unitialized member variable & non deleted copy ctor

parent 5f04ba3c
...@@ -185,7 +185,7 @@ public: ...@@ -185,7 +185,7 @@ public:
} }
protected: protected:
CurlFileDescriptorResource(){} CurlFileDescriptorResource(): m_File(nullptr) {}
~CurlFileDescriptorResource() override ~CurlFileDescriptorResource() override
{ {
...@@ -195,9 +195,9 @@ protected: ...@@ -195,9 +195,9 @@ protected:
private: private:
FILE * m_File; FILE * m_File;
// prevent copying and assignment; not implemented // prevent copying and assignment
CurlFileDescriptorResource (const CurlFileDescriptorResource &); CurlFileDescriptorResource (const CurlFileDescriptorResource &) = delete;
CurlFileDescriptorResource & operator= (const CurlFileDescriptorResource &); CurlFileDescriptorResource & operator= (const CurlFileDescriptorResource &) = delete;
}; //end of class FileResource }; //end of class FileResource
#endif // OTB_USE_CURL #endif // OTB_USE_CURL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment