@@ -243,16 +243,9 @@ namespace Exiv2 {
243243 /* !
244244 @brief this is allocated and populated by mmap()
245245 */
246- byte* bigBlock_;
246+ byte* bigBlock_{} ;
247247
248248 // @}
249-
250- protected:
251- // ! @name Creators
252- // @{
253- // ! Default Constructor
254- BasicIo () : bigBlock_(NULL ) {};
255- // @}
256249 }; // class BasicIo
257250
258251 /* !
@@ -281,12 +274,11 @@ namespace Exiv2 {
281274 // ! The BasicIo reference
282275 BasicIo& bio_;
283276
284- private:
285277 // Not implemented
286278 // ! Copy constructor
287- IoCloser (const IoCloser&);
279+ IoCloser (const IoCloser&) = delete ;
288280 // ! Assignment operator
289- IoCloser& operator =(const IoCloser&);
281+ IoCloser& operator =(const IoCloser&) = delete ;
290282 }; // class IoCloser
291283
292284 /* !
@@ -512,13 +504,13 @@ namespace Exiv2 {
512504 virtual void populateFakeData ();
513505 // @}
514506
515- private:
516507 // NOT IMPLEMENTED
517508 // ! Copy constructor
518- FileIo (FileIo& rhs);
509+ FileIo (FileIo& rhs) = delete ;
519510 // ! Assignment operator
520- FileIo& operator =(const FileIo& rhs);
511+ FileIo& operator =(const FileIo& rhs) = delete ;
521512
513+ private:
522514 // Pimpl idiom
523515 class Impl ;
524516 std::unique_ptr<Impl> p_;
@@ -712,13 +704,13 @@ namespace Exiv2 {
712704
713705 // @}
714706
715- private:
716707 // NOT IMPLEMENTED
717708 // ! Copy constructor
718- MemIo (MemIo& rhs);
709+ MemIo (MemIo& rhs) = delete ;
719710 // ! Assignment operator
720- MemIo& operator =(const MemIo& rhs);
711+ MemIo& operator =(const MemIo& rhs) = delete ;
721712
713+ private:
722714 // Pimpl idiom
723715 class Impl ;
724716 std::unique_ptr<Impl> p_;
@@ -1029,13 +1021,13 @@ namespace Exiv2 {
10291021 */
10301022 HttpIo (const std::wstring& wurl, size_t blockSize = 1024 );
10311023#endif
1032- // @}
1033- protected:
10341024 // NOT IMPLEMENTED
10351025 // ! Copy constructor
1036- HttpIo (HttpIo& rhs);
1026+ HttpIo (HttpIo& rhs) = delete ;
10371027 // ! Assignment operator
1038- HttpIo& operator =(const HttpIo& rhs);
1028+ HttpIo& operator =(const HttpIo& rhs) = delete ;
1029+
1030+ private:
10391031 // Pimpl idiom
10401032 class HttpImpl ;
10411033 };
@@ -1079,12 +1071,14 @@ namespace Exiv2 {
10791071 for the protocol. Otherwise, it throws the Error.
10801072 */
10811073 long write (BasicIo& src);
1082- protected:
1074+
10831075 // NOT IMPLEMENTED
10841076 // ! Copy constructor
1085- CurlIo (CurlIo& rhs);
1077+ CurlIo (CurlIo& rhs) = delete ;
10861078 // ! Assignment operator
1087- CurlIo& operator =(const CurlIo& rhs);
1079+ CurlIo& operator =(const CurlIo& rhs) = delete ;
1080+
1081+ protected:
10881082 // Pimpl idiom
10891083 class CurlImpl ;
10901084 };
0 commit comments