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:
}
protected:
CurlFileDescriptorResource(){}
CurlFileDescriptorResource(): m_File(nullptr) {}
~CurlFileDescriptorResource() override
{
......@@ -195,9 +195,9 @@ protected:
private:
FILE * m_File;
// prevent copying and assignment; not implemented
CurlFileDescriptorResource (const CurlFileDescriptorResource &);
CurlFileDescriptorResource & operator= (const CurlFileDescriptorResource &);
// prevent copying and assignment
CurlFileDescriptorResource (const CurlFileDescriptorResource &) = delete;
CurlFileDescriptorResource & operator= (const CurlFileDescriptorResource &) = delete;
}; //end of class FileResource
#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