Kaydet (Commit) d59fe933 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Use boost::noncopyable

Change-Id: I1cd2ad1284f2fb9f6847cdb9175a5872a66726cd
üst b6f46580
...@@ -15,6 +15,7 @@ $(eval $(call gb_Library_set_include,recentfile,\ ...@@ -15,6 +15,7 @@ $(eval $(call gb_Library_set_include,recentfile,\
)) ))
$(eval $(call gb_Library_use_externals,recentfile,\ $(eval $(call gb_Library_use_externals,recentfile,\
boost_headers \
expat \ expat \
)) ))
......
...@@ -17,7 +17,9 @@ ...@@ -17,7 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <sal/config.h>
#include "boost/noncopyable.hpp"
#include "osl/process.h" #include "osl/process.h"
#include "rtl/ustring.hxx" #include "rtl/ustring.hxx"
#include "rtl/string.hxx" #include "rtl/string.hxx"
...@@ -207,7 +209,8 @@ namespace /* private */ { ...@@ -207,7 +209,8 @@ namespace /* private */ {
// thrown if we encounter xml tags that we do not know // thrown if we encounter xml tags that we do not know
class unknown_xml_format_exception {}; class unknown_xml_format_exception {};
class recently_used_file_filter : public i_xml_parser_event_handler class recently_used_file_filter:
public i_xml_parser_event_handler, private boost::noncopyable
{ {
public: public:
recently_used_file_filter(recently_used_item_list_t& item_list) : recently_used_file_filter(recently_used_item_list_t& item_list) :
...@@ -278,9 +281,6 @@ namespace /* private */ { ...@@ -278,9 +281,6 @@ namespace /* private */ {
std::map<string_t, SET_COMMAND> named_command_map_; std::map<string_t, SET_COMMAND> named_command_map_;
string_t current_element_; string_t current_element_;
recently_used_item_list_t& item_list_; recently_used_item_list_t& item_list_;
private:
recently_used_file_filter(const recently_used_file_filter&);
recently_used_file_filter& operator=(const recently_used_file_filter&);
}; };
......
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