From f32b300c9e071c2bdee2a7b925200feb93add702 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Wed, 5 Oct 2016 10:52:23 +0900 Subject: tdf#75757 Remove inheritance from std::vector Change-Id: I87572c545559ef22d4f74fb63218910681c1a7d7 Reviewed-on: https://gerrit.libreoffice.org/29533 Tested-by: Jenkins Reviewed-by: Takeshi Abe --- sw/inc/doc.hxx | 3 ++- sw/inc/fmtcol.hxx | 2 +- sw/inc/rubylist.hxx | 5 ----- 3 files changed, 3 insertions(+), 7 deletions(-) (limited to 'sw') diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index bc53c5e05c14..4d881ad1547b 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -110,7 +110,6 @@ class SwNumRule; class SwNumRuleTable; class SwPagePreviewPrtData; class SwRootFrame; -class SwRubyList; class SwRubyListEntry; class SwSectionFormat; class SwSectionFormats; @@ -228,6 +227,8 @@ void SetAllScriptItem( SfxItemSet& rSet, const SfxPoolItem& rItem ); // global function to start grammar checking in the document void StartGrammarChecking( SwDoc &rDoc ); +using SwRubyList = std::vector>; + // Represents the model of a Writer document. class SW_DLLPUBLIC SwDoc : public IInterface diff --git a/sw/inc/fmtcol.hxx b/sw/inc/fmtcol.hxx index 5c2045bad2c3..78688f02e528 100644 --- a/sw/inc/fmtcol.hxx +++ b/sw/inc/fmtcol.hxx @@ -207,7 +207,7 @@ public: void RegisterToFormat( SwFormat& ); }; -class SwFormatCollConditions : public std::vector> {}; +using SwFormatCollConditions = std::vector>; class SW_DLLPUBLIC SwConditionTextFormatColl : public SwTextFormatColl { diff --git a/sw/inc/rubylist.hxx b/sw/inc/rubylist.hxx index 680379f3d2e3..bcb7447276a3 100644 --- a/sw/inc/rubylist.hxx +++ b/sw/inc/rubylist.hxx @@ -22,9 +22,6 @@ #include #include -#include -#include - class SwRubyListEntry { OUString m_sText; @@ -41,8 +38,6 @@ public: void SetRubyAttr( const SwFormatRuby& rAttr ) { m_aRubyAttr = rAttr; } }; -class SwRubyList : public std::vector> {}; - #endif //_ INCLUDED_SW_INC_RUBYLIST_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit