diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-04-09 17:07:54 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-04-11 07:22:50 +0000 |
commit | d84ef731d8f5d8c1e896ecda3d03d4bb9129578d (patch) | |
tree | 582bdc8fc22114031c5564e2abb1691ef56acfe0 /l10ntools | |
parent | tdf#84938 replace #defined constants with enum class (diff) | |
download | core-d84ef731d8f5d8c1e896ecda3d03d4bb9129578d.tar.gz core-d84ef731d8f5d8c1e896ecda3d03d4bb9129578d.zip |
tdf#94306 replace boost::noncopyable ...
... in modules editeng to oox.
Replace with C++11 delete copy-constructur and
copy-assignment.
Remove boost/noncopyable.hpp includes and
one unused boost/checked_delete.hpp include in linguistic.
Change-Id: I5a38d8e5ac1b4286bdeb3858d56490a53d13fe80
Reviewed-on: https://gerrit.libreoffice.org/23928
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/inc/po.hxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/l10ntools/inc/po.hxx b/l10ntools/inc/po.hxx index 24f9c28a4ed6..3004a1817cf3 100644 --- a/l10ntools/inc/po.hxx +++ b/l10ntools/inc/po.hxx @@ -13,7 +13,6 @@ #include <fstream> #include <memory> #include <rtl/string.hxx> -#include <boost/noncopyable.hpp> class PoOfstream; class PoIfstream; @@ -74,7 +73,7 @@ public: a po file. It's main function to generate header to template po files(pot). */ -class PoHeader: private boost::noncopyable +class PoHeader { private: @@ -88,10 +87,12 @@ public: PoHeader( const OString& rExtSrc ); ///< Template Constructor ~PoHeader(); + PoHeader(const PoHeader&) = delete; + PoHeader& operator=(const PoHeader&) = delete; }; /// Interface to write po entry to files as output streams -class PoOfstream: private boost::noncopyable +class PoOfstream { private: @@ -105,6 +106,8 @@ public: PoOfstream(); PoOfstream(const OString& rFileName, OpenMode aMode = TRUNC ); ~PoOfstream(); + PoOfstream(const PoOfstream&) = delete; + PoOfstream& operator=(const PoOfstream&) = delete; bool isOpen() const { return m_aOutPut.is_open(); } void open(const OString& rFileName, OpenMode aMode = TRUNC ); @@ -114,7 +117,7 @@ public: }; /// Interface to read po entry from files as input streams -class PoIfstream: private boost::noncopyable +class PoIfstream { private: @@ -128,6 +131,8 @@ public: PoIfstream(); PoIfstream( const OString& rFileName ); ~PoIfstream(); + PoIfstream(const PoIfstream&) = delete; + PoIfstream& operator=(const PoIfstream&) = delete; bool isOpen() const { return m_aInPut.is_open(); } bool eof() const { return m_bEof; } |