diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-08 13:07:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-09 08:10:49 +0200 |
commit | ec7e3609917092ee00667c78ff40cd4c2f0adec1 (patch) | |
tree | cf7f64709a6e76ab27d7b14a6902c83a73246d27 /shell | |
parent | 8411b80d46765f1ddd4e37aa634ec963dcf4b04f (diff) |
loplugin:constfields in shell
Change-Id: Ib30c45bddcc58fcd0fec8b160eb925349e801df7
Reviewed-on: https://gerrit.libreoffice.org/61551
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'shell')
-rw-r--r-- | shell/inc/xml_parser.hxx | 2 | ||||
-rw-r--r-- | shell/source/tools/lngconvex/cmdline.hxx | 4 | ||||
-rw-r--r-- | shell/source/tools/lngconvex/lngconvex.cxx | 2 | ||||
-rw-r--r-- | shell/source/unix/sysshell/recently_used_file_handler.cxx | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/shell/inc/xml_parser.hxx b/shell/inc/xml_parser.hxx index 3ef5ada394ac..859d07fd050e 100644 --- a/shell/inc/xml_parser.hxx +++ b/shell/inc/xml_parser.hxx @@ -97,7 +97,7 @@ private: private: i_xml_parser_event_handler* document_handler_; - XML_Parser xml_parser_; + XML_Parser const xml_parser_; private: xml_parser(const xml_parser&) = delete; diff --git a/shell/source/tools/lngconvex/cmdline.hxx b/shell/source/tools/lngconvex/cmdline.hxx index 04cb7101aee0..166766ac3e3f 100644 --- a/shell/source/tools/lngconvex/cmdline.hxx +++ b/shell/source/tools/lngconvex/cmdline.hxx @@ -69,8 +69,8 @@ private: static bool is_arg_name(const std::string& Argument); private: - size_t m_argc; - char** m_argv; + size_t const m_argc; + char** const m_argv; // prevent copy and assignment private: diff --git a/shell/source/tools/lngconvex/lngconvex.cxx b/shell/source/tools/lngconvex/lngconvex.cxx index 67068980834e..d8a1d8837d96 100644 --- a/shell/source/tools/lngconvex/lngconvex.cxx +++ b/shell/source/tools/lngconvex/lngconvex.cxx @@ -143,7 +143,7 @@ public: } private: std::ios& m_IoStrm; - std::ios::iostate m_OldIos; + std::ios::iostate const m_OldIos; }; class iso_lang_identifier diff --git a/shell/source/unix/sysshell/recently_used_file_handler.cxx b/shell/source/unix/sysshell/recently_used_file_handler.cxx index 067c968f4814..d85861346f21 100644 --- a/shell/source/unix/sysshell/recently_used_file_handler.cxx +++ b/shell/source/unix/sysshell/recently_used_file_handler.cxx @@ -340,7 +340,7 @@ namespace /* private */ { bool operator() (const std::unique_ptr<recently_used_item> & item) const { return (item->uri_ == uri_); } private: - string_t uri_; + string_t const uri_; }; |