[Libreoffice-commits] core.git: dbaccess/source editeng/source include/svtools sc/source sfx2/source svtools/source sw/source

Stephan Bergmann sbergman at redhat.com
Mon Sep 29 04:57:50 PDT 2014


 dbaccess/source/ui/misc/HtmlReader.cxx           |    8 +--
 editeng/source/editeng/eehtml.cxx                |    6 +-
 include/svtools/brwbox.hxx                       |    2 
 include/svtools/dialogcontrolling.hxx            |    4 -
 include/svtools/editbrowsebox.hxx                |    2 
 include/svtools/parhtml.hxx                      |    9 ++--
 include/svtools/toolpanel/paneltabbar.hxx        |    2 
 include/svtools/toolpanel/tablayouter.hxx        |    2 
 include/svtools/toolpanel/toolpaneldeck.hxx      |    2 
 sc/source/filter/html/htmlpars.cxx               |   48 +++++++++++------------
 sfx2/source/bastyp/frmhtml.cxx                   |    2 
 sfx2/source/bastyp/sfxhtml.cxx                   |    4 -
 svtools/source/edit/svmedit.cxx                  |    2 
 svtools/source/graphic/graphicunofactory.cxx     |    2 
 svtools/source/svhtml/htmlsupp.cxx               |    2 
 svtools/source/svhtml/parhtml.cxx                |    7 +--
 svtools/source/toolpanel/tablayouter.cxx         |    2 
 svtools/source/toolpanel/toolpanelcollection.hxx |    2 
 svtools/source/toolpanel/toolpaneldrawer.hxx     |    2 
 sw/source/filter/html/htmlcss1.cxx               |    4 -
 sw/source/filter/html/htmldrawreader.cxx         |    2 
 sw/source/filter/html/htmlfld.cxx                |    2 
 sw/source/filter/html/htmlform.cxx               |   10 ++--
 sw/source/filter/html/htmlgrin.cxx               |    6 +-
 sw/source/filter/html/htmlnumreader.cxx          |    4 -
 sw/source/filter/html/htmlplug.cxx               |   10 ++--
 sw/source/filter/html/htmlsect.cxx               |    4 -
 sw/source/filter/html/htmltab.cxx                |   16 +++----
 sw/source/filter/html/swhtml.cxx                 |   32 +++++++--------
 29 files changed, 102 insertions(+), 98 deletions(-)

New commits:
commit 014e7933af751bfe0a03867373b82efa806f3a3d
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Sep 29 13:56:43 2014 +0200

    svtools: std::auto_ptr -> std::unique_ptr
    
    ...changing HTMLOptions to std::vector<std::unique_ptr<...>> because
    boost::ptr_vector<...>::push_back only supports auto_ptr, not unique_ptr.
    
    Change-Id: Ie5f92bc40ce5425dc1c634b17addc2b0dd9bbda3

diff --git a/dbaccess/source/ui/misc/HtmlReader.cxx b/dbaccess/source/ui/misc/HtmlReader.cxx
index 67556a3..1fba4c0 100644
--- a/dbaccess/source/ui/misc/HtmlReader.cxx
+++ b/dbaccess/source/ui/misc/HtmlReader.cxx
@@ -137,7 +137,7 @@ void OHTMLReader::NextToken( int nToken )
                     const HTMLOptions& rHtmlOptions = GetOptions();
                     for (size_t i = 0, n = rHtmlOptions.size(); i < n; ++i)
                     {
-                        const HTMLOption& rOption = rHtmlOptions[i];
+                        const HTMLOption& rOption = *rHtmlOptions[i];
                         switch( rOption.GetToken() )
                         {
                             case HTML_O_WIDTH:
@@ -294,7 +294,7 @@ void OHTMLReader::fetchOptions()
     const HTMLOptions& options = GetOptions();
     for (size_t i = 0, n = options.size(); i < n; ++i)
     {
-        const HTMLOption& rOption = options[i];
+        const HTMLOption& rOption = *options[i];
         switch( rOption.GetToken() )
         {
             case HTML_O_SDVAL:
@@ -315,7 +315,7 @@ void OHTMLReader::TableDataOn(SvxCellHorJustify& eVal)
     const HTMLOptions& rHtmlOptions = GetOptions();
     for (size_t i = 0, n = rHtmlOptions.size(); i < n; ++i)
     {
-        const HTMLOption& rOption = rHtmlOptions[i];
+        const HTMLOption& rOption = *rHtmlOptions[i];
         switch( rOption.GetToken() )
         {
             case HTML_O_ALIGN:
@@ -343,7 +343,7 @@ void OHTMLReader::TableFontOn(FontDescriptor& _rFont,sal_Int32 &_rTextColor)
     const HTMLOptions& rHtmlOptions = GetOptions();
     for (size_t i = 0, n = rHtmlOptions.size(); i < n; ++i)
     {
-        const HTMLOption& rOption = rHtmlOptions[i];
+        const HTMLOption& rOption = *rHtmlOptions[i];
         switch( rOption.GetToken() )
         {
         case HTML_O_COLOR:
diff --git a/editeng/source/editeng/eehtml.cxx b/editeng/source/editeng/eehtml.cxx
index 15d8c59..3845884 100644
--- a/editeng/source/editeng/eehtml.cxx
+++ b/editeng/source/editeng/eehtml.cxx
@@ -117,7 +117,7 @@ void EditHTMLParser::NextToken( int nToken )
         bool bEquiv = false;
         for ( size_t i = 0; i < nArrLen; i++ )
         {
-            const HTMLOption& aOption = aOptions[i];
+            const HTMLOption& aOption = *aOptions[i];
             switch( aOption.GetToken() )
             {
                 case HTML_O_HTTPEQUIV:
@@ -711,7 +711,7 @@ void EditHTMLParser::StartPara( bool bReal )
         SvxAdjust eAdjust = SVX_ADJUST_LEFT;
         for ( size_t i = 0, n = aOptions.size(); i < n; ++i )
         {
-            const HTMLOption& aOption = aOptions[i];
+            const HTMLOption& aOption = *aOptions[i];
             switch( aOption.GetToken() )
             {
                 case HTML_O_ALIGN:
@@ -772,7 +772,7 @@ void EditHTMLParser::AnchorStart()
 
         for ( size_t i = 0, n = aOptions.size(); i < n; ++i )
         {
-            const HTMLOption& aOption = aOptions[i];
+            const HTMLOption& aOption = *aOptions[i];
             switch( aOption.GetToken() )
             {
                 case HTML_O_HREF:
diff --git a/include/svtools/brwbox.hxx b/include/svtools/brwbox.hxx
index e16e0de..f0e47ca 100644
--- a/include/svtools/brwbox.hxx
+++ b/include/svtools/brwbox.hxx
@@ -295,7 +295,7 @@ private:
     typedef std::stack<CursorMoveAttempt> GotoStack;
     GotoStack       m_aGotoStack;
 
-    ::std::auto_ptr< ::svt::BrowseBoxImpl >  m_pImpl;       // impl structure of the BrowseBox object
+    ::std::unique_ptr< ::svt::BrowseBoxImpl >  m_pImpl;       // impl structure of the BrowseBox object
 
     bool            m_bFocusOnlyCursor; // hide cursor if we don't have the focus
     Color           m_aCursorColor;     // special color for cursor, COL_TRANSPARENT for usual (VCL-painted) "inverted" cursor
diff --git a/include/svtools/dialogcontrolling.hxx b/include/svtools/dialogcontrolling.hxx
index cf455be..150e934 100644
--- a/include/svtools/dialogcontrolling.hxx
+++ b/include/svtools/dialogcontrolling.hxx
@@ -90,7 +90,7 @@ namespace svt
     class SVT_DLLPUBLIC DialogController
     {
     private:
-        ::std::auto_ptr< DialogController_Data >    m_pImpl;
+        ::std::unique_ptr< DialogController_Data >    m_pImpl;
 
     public:
         DialogController( vcl::Window& _rInstigator, const PWindowEventFilter& _pEventFilter, const PWindowOperator& _pOperator );
@@ -138,7 +138,7 @@ namespace svt
     class SVT_DLLPUBLIC ControlDependencyManager
     {
     private:
-        ::std::auto_ptr< ControlDependencyManager_Data >    m_pImpl;
+        ::std::unique_ptr< ControlDependencyManager_Data >    m_pImpl;
 
     public:
         ControlDependencyManager();
diff --git a/include/svtools/editbrowsebox.hxx b/include/svtools/editbrowsebox.hxx
index cb69692..9a9722d 100644
--- a/include/svtools/editbrowsebox.hxx
+++ b/include/svtools/editbrowsebox.hxx
@@ -491,7 +491,7 @@ namespace svt
 
         sal_Int32   m_nBrowserFlags;
         ImageList   m_aStatusImages;
-        ::std::auto_ptr< EditBrowseBoxImpl> m_aImpl;
+        ::std::unique_ptr< EditBrowseBoxImpl> m_aImpl;
 
     protected:
         BrowserHeader*  pHeader;
diff --git a/include/svtools/parhtml.hxx b/include/svtools/parhtml.hxx
index ed4f4c3..09027f4 100644
--- a/include/svtools/parhtml.hxx
+++ b/include/svtools/parhtml.hxx
@@ -20,11 +20,14 @@
 #ifndef INCLUDED_SVTOOLS_PARHTML_HXX
 #define INCLUDED_SVTOOLS_PARHTML_HXX
 
+#include <sal/config.h>
+
+#include <memory>
+#include <vector>
+
 #include <svtools/svtdllapi.h>
 #include <svtools/svparser.hxx>
 
-#include <boost/ptr_container/ptr_vector.hpp>
-
 namespace com { namespace sun { namespace star {
     namespace document {
         class XDocumentProperties;
@@ -118,7 +121,7 @@ public:
     //SvxAdjust GetAdjust() const;                      // <P,TH,TD ALIGN=>
 };
 
-typedef ::boost::ptr_vector<HTMLOption> HTMLOptions;
+typedef std::vector<std::unique_ptr<HTMLOption>> HTMLOptions;
 
 class SVT_DLLPUBLIC HTMLParser : public SvParser
 {
diff --git a/include/svtools/toolpanel/paneltabbar.hxx b/include/svtools/toolpanel/paneltabbar.hxx
index 0964d79..18e4d1e 100644
--- a/include/svtools/toolpanel/paneltabbar.hxx
+++ b/include/svtools/toolpanel/paneltabbar.hxx
@@ -84,7 +84,7 @@ namespace svt
                         GetComponentInterface( bool i_bCreate ) SAL_OVERRIDE;
 
     private:
-        ::std::auto_ptr< PanelTabBar_Impl > m_pImpl;
+        ::std::unique_ptr< PanelTabBar_Impl > m_pImpl;
     };
 
 
diff --git a/include/svtools/toolpanel/tablayouter.hxx b/include/svtools/toolpanel/tablayouter.hxx
index 3ad6060..fb10627 100644
--- a/include/svtools/toolpanel/tablayouter.hxx
+++ b/include/svtools/toolpanel/tablayouter.hxx
@@ -83,7 +83,7 @@ namespace svt
                             ) SAL_OVERRIDE;
 
     private:
-        ::std::auto_ptr< TabDeckLayouter_Data > m_pData;
+        ::std::unique_ptr< TabDeckLayouter_Data > m_pData;
     };
 
 
diff --git a/include/svtools/toolpanel/toolpaneldeck.hxx b/include/svtools/toolpanel/toolpaneldeck.hxx
index 48127c5..d9c06ce 100644
--- a/include/svtools/toolpanel/toolpaneldeck.hxx
+++ b/include/svtools/toolpanel/toolpaneldeck.hxx
@@ -172,7 +172,7 @@ namespace svt
                      GetComponentInterface( bool i_bCreate ) SAL_OVERRIDE;
 
     private:
-        ::std::auto_ptr< ToolPanelDeck_Impl >   m_pImpl;
+        ::std::unique_ptr< ToolPanelDeck_Impl >   m_pImpl;
     };
 
 
diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx
index 00ce6f1..28dc7e4 100644
--- a/sc/source/filter/html/htmlpars.cxx
+++ b/sc/source/filter/html/htmlpars.cxx
@@ -965,7 +965,7 @@ void ScHTMLLayoutParser::TableDataOn( ImportInfo* pInfo )
     const HTMLOptions& rOptions = static_cast<HTMLParser*>(pInfo->pParser)->GetOptions();
     for (size_t i = 0, n = rOptions.size(); i < n; ++i)
     {
-        const HTMLOption& rOption = rOptions[i];
+        const HTMLOption& rOption = *rOptions[i];
         switch( rOption.GetToken() )
         {
             case HTML_O_COLSPAN:
@@ -1087,7 +1087,7 @@ void ScHTMLLayoutParser::TableOn( ImportInfo* pInfo )
             const HTMLOptions& rOptions = static_cast<HTMLParser*>(pInfo->pParser)->GetOptions();
             for (size_t i = 0, n = rOptions.size(); i < n; ++i)
             {
-                const HTMLOption& rOption = rOptions[i];
+                const HTMLOption& rOption = *rOptions[i];
                 switch( rOption.GetToken() )
                 {
                     case HTML_O_WIDTH:
@@ -1147,7 +1147,7 @@ void ScHTMLLayoutParser::TableOn( ImportInfo* pInfo )
             const HTMLOptions& rOptions = static_cast<HTMLParser*>(pInfo->pParser)->GetOptions();
             for (size_t i = 0, n = rOptions.size(); i < n; ++i)
             {
-                const HTMLOption& rOption = rOptions[i];
+                const HTMLOption& rOption = *rOptions[i];
                 switch( rOption.GetToken() )
                 {
                     case HTML_O_WIDTH:
@@ -1339,7 +1339,7 @@ void ScHTMLLayoutParser::Image( ImportInfo* pInfo )
     const HTMLOptions& rOptions = static_cast<HTMLParser*>(pInfo->pParser)->GetOptions();
     for (size_t i = 0, n = rOptions.size(); i < n; ++i)
     {
-        const HTMLOption& rOption = rOptions[i];
+        const HTMLOption& rOption = *rOptions[i];
         switch( rOption.GetToken() )
         {
             case HTML_O_SRC:
@@ -1431,7 +1431,7 @@ void ScHTMLLayoutParser::ColOn( ImportInfo* pInfo )
     const HTMLOptions& rOptions = static_cast<HTMLParser*>(pInfo->pParser)->GetOptions();
     for (size_t i = 0, n = rOptions.size(); i < n; ++i)
     {
-        const HTMLOption& rOption = rOptions[i];
+        const HTMLOption& rOption = *rOptions[i];
         switch( rOption.GetToken() )
         {
             case HTML_O_WIDTH:
@@ -1470,7 +1470,7 @@ void ScHTMLLayoutParser::AnchorOn( ImportInfo* pInfo )
     const HTMLOptions& rOptions = static_cast<HTMLParser*>(pInfo->pParser)->GetOptions();
     for (size_t i = 0, n = rOptions.size(); i < n; ++i)
     {
-        const HTMLOption& rOption = rOptions[i];
+        const HTMLOption& rOption = *rOptions[i];
         switch( rOption.GetToken() )
         {
             case HTML_O_NAME:
@@ -1497,7 +1497,7 @@ void ScHTMLLayoutParser::FontOn( ImportInfo* pInfo )
         const HTMLOptions& rOptions = static_cast<HTMLParser*>(pInfo->pParser)->GetOptions();
         for (size_t i = 0, n = rOptions.size(); i < n; ++i)
         {
-            const HTMLOption& rOption = rOptions[i];
+            const HTMLOption& rOption = *rOptions[i];
             switch( rOption.GetToken() )
             {
                 case HTML_O_FACE :
@@ -1922,13 +1922,13 @@ ScHTMLTable::ScHTMLTable( ScHTMLTable& rParentTable, const ImportInfo& rInfo, bo
         HTMLOptions::const_iterator itr = rOptions.begin(), itrEnd = rOptions.end();
         for (; itr != itrEnd; ++itr)
         {
-            switch( itr->GetToken() )
+            switch( (*itr)->GetToken() )
             {
                 case HTML_O_BORDER:
-                    mbBorderOn = itr->GetString().isEmpty() || (itr->GetNumber() != 0);
+                    mbBorderOn = (*itr)->GetString().isEmpty() || ((*itr)->GetNumber() != 0);
                 break;
                 case HTML_O_ID:
-                    maTableName = itr->GetString();
+                    maTableName = (*itr)->GetString();
                 break;
             }
         }
@@ -2148,26 +2148,26 @@ void ScHTMLTable::DataOn( const ImportInfo& rInfo )
         sal_uInt32 nNumberFormat = NUMBERFORMAT_ENTRY_NOT_FOUND;
         for (; itr != itrEnd; ++itr)
         {
-            switch (itr->GetToken())
+            switch ((*itr)->GetToken())
             {
                 case HTML_O_COLSPAN:
-                    aSpanSize.mnCols = static_cast<SCCOL>( getLimitedValue<sal_Int32>( itr->GetString().toInt32(), 1, 256 ) );
+                    aSpanSize.mnCols = static_cast<SCCOL>( getLimitedValue<sal_Int32>( (*itr)->GetString().toInt32(), 1, 256 ) );
                 break;
                 case HTML_O_ROWSPAN:
-                    aSpanSize.mnRows = static_cast<SCROW>( getLimitedValue<sal_Int32>( itr->GetString().toInt32(), 1, 256 ) );
+                    aSpanSize.mnRows = static_cast<SCROW>( getLimitedValue<sal_Int32>( (*itr)->GetString().toInt32(), 1, 256 ) );
                 break;
                 case HTML_O_SDVAL:
-                    pValStr.reset(new OUString(itr->GetString()));
+                    pValStr.reset(new OUString((*itr)->GetString()));
                 break;
                 case HTML_O_SDNUM:
-                    pNumStr.reset(new OUString(itr->GetString()));
+                    pNumStr.reset(new OUString((*itr)->GetString()));
                 break;
                 case HTML_O_CLASS:
                 {
                     // Pick up the number format associated with this class (if
                     // any).
                     OUString aElem("td");
-                    OUString aClass = itr->GetString();
+                    OUString aClass = (*itr)->GetString();
                     OUString aProp("mso-number-format");
                     const ScHTMLStyles& rStyles = mpParser->GetStyles();
                     const OUString& rVal = rStyles.getPropertyValue(aElem, aClass, aProp);
@@ -2567,12 +2567,12 @@ void ScHTMLTable::ProcessFormatOptions( SfxItemSet& rItemSet, const ImportInfo&
     HTMLOptions::const_iterator itr = rOptions.begin(), itrEnd = rOptions.end();
     for (; itr != itrEnd; ++itr)
     {
-        switch( itr->GetToken() )
+        switch( (*itr)->GetToken() )
         {
             case HTML_O_ALIGN:
             {
                 SvxCellHorJustify eVal = SVX_HOR_JUSTIFY_STANDARD;
-                const OUString& rOptVal = itr->GetString();
+                const OUString& rOptVal = (*itr)->GetString();
                 if( rOptVal.equalsIgnoreAsciiCase( OOO_STRING_SVTOOLS_HTML_AL_right ) )
                     eVal = SVX_HOR_JUSTIFY_RIGHT;
                 else if( rOptVal.equalsIgnoreAsciiCase( OOO_STRING_SVTOOLS_HTML_AL_center ) )
@@ -2587,7 +2587,7 @@ void ScHTMLTable::ProcessFormatOptions( SfxItemSet& rItemSet, const ImportInfo&
             case HTML_O_VALIGN:
             {
                 SvxCellVerJustify eVal = SVX_VER_JUSTIFY_STANDARD;
-                const OUString& rOptVal = itr->GetString();
+                const OUString& rOptVal = (*itr)->GetString();
                 if( rOptVal.equalsIgnoreAsciiCase( OOO_STRING_SVTOOLS_HTML_VA_top ) )
                     eVal = SVX_VER_JUSTIFY_TOP;
                 else if( rOptVal.equalsIgnoreAsciiCase( OOO_STRING_SVTOOLS_HTML_VA_middle ) )
@@ -2602,7 +2602,7 @@ void ScHTMLTable::ProcessFormatOptions( SfxItemSet& rItemSet, const ImportInfo&
             case HTML_O_BGCOLOR:
             {
                 Color aColor;
-                itr->GetColor( aColor );
+                (*itr)->GetColor( aColor );
                 rItemSet.Put( SvxBrushItem( aColor, ATTR_BACKGROUND ) );
             }
             break;
@@ -2991,11 +2991,11 @@ void ScHTMLQueryParser::FontOn( const ImportInfo& rInfo )
     HTMLOptions::const_iterator itr = rOptions.begin(), itrEnd = rOptions.end();
     for (; itr != itrEnd; ++itr)
     {
-        switch( itr->GetToken() )
+        switch( (*itr)->GetToken() )
         {
             case HTML_O_FACE :
             {
-                const OUString& rFace = itr->GetString();
+                const OUString& rFace = (*itr)->GetString();
                 OUString aFontName;
                 sal_Int32 nPos = 0;
                 while( nPos != -1 )
@@ -3012,14 +3012,14 @@ void ScHTMLQueryParser::FontOn( const ImportInfo& rInfo )
             break;
             case HTML_O_SIZE :
             {
-                sal_uInt32 nSize = getLimitedValue< sal_uInt32 >( itr->GetNumber(), 1, SC_HTML_FONTSIZES );
+                sal_uInt32 nSize = getLimitedValue< sal_uInt32 >( (*itr)->GetNumber(), 1, SC_HTML_FONTSIZES );
                 mpCurrTable->PutItem( SvxFontHeightItem( maFontHeights[ nSize - 1 ], 100, ATTR_FONT_HEIGHT ) );
             }
             break;
             case HTML_O_COLOR :
             {
                 Color aColor;
-                itr->GetColor( aColor );
+                (*itr)->GetColor( aColor );
                 mpCurrTable->PutItem( SvxColorItem( aColor, ATTR_FONT_COLOR ) );
             }
             break;
diff --git a/sfx2/source/bastyp/frmhtml.cxx b/sfx2/source/bastyp/frmhtml.cxx
index c667f19..dd14e59 100644
--- a/sfx2/source/bastyp/frmhtml.cxx
+++ b/sfx2/source/bastyp/frmhtml.cxx
@@ -61,7 +61,7 @@ void SfxFrameHTMLParser::ParseFrameOptions(
 
     for (size_t i = 0, n = rOptions.size(); i < n; ++i)
     {
-        const HTMLOption& aOption = rOptions[i];
+        const HTMLOption& aOption = *rOptions[i];
         switch( aOption.GetToken() )
         {
         case HTML_O_BORDERCOLOR:
diff --git a/sfx2/source/bastyp/sfxhtml.cxx b/sfx2/source/bastyp/sfxhtml.cxx
index 0e036c9..ccc11d0 100644
--- a/sfx2/source/bastyp/sfxhtml.cxx
+++ b/sfx2/source/bastyp/sfxhtml.cxx
@@ -94,7 +94,7 @@ bool SfxHTMLParser::ParseMapOptions(
 
     for (size_t i = rOptions.size(); i; )
     {
-        const HTMLOption& aOption = rOptions[--i];
+        const HTMLOption& aOption = *rOptions[--i];
         switch( aOption.GetToken() )
         {
         case HTML_O_NAME:
@@ -126,7 +126,7 @@ bool SfxHTMLParser::ParseAreaOptions(ImageMap * pImageMap, const OUString& rBase
     {
         sal_uInt16 nEvent = 0;
         ScriptType eScrpType = STARBASIC;
-        const HTMLOption& rOption = rOptions[--i];
+        const HTMLOption& rOption = *rOptions[--i];
         switch( rOption.GetToken() )
         {
         case HTML_O_NAME:
diff --git a/svtools/source/edit/svmedit.cxx b/svtools/source/edit/svmedit.cxx
index 3f645d5..faaab3e 100644
--- a/svtools/source/edit/svmedit.cxx
+++ b/svtools/source/edit/svmedit.cxx
@@ -34,7 +34,7 @@ MultiLineEdit::GetComponentInterface(bool bCreate)
         VclMultiLineEdit::GetComponentInterface(false));
     if (!xPeer.is() && bCreate)
     {
-        ::std::auto_ptr< VCLXMultiLineEdit > xVCLMEdit(new VCLXMultiLineEdit());
+        ::std::unique_ptr< VCLXMultiLineEdit > xVCLMEdit(new VCLXMultiLineEdit());
         xVCLMEdit->SetWindow(this);
         xPeer = xVCLMEdit.release();
         SetComponentInterface(xPeer);
diff --git a/svtools/source/graphic/graphicunofactory.cxx b/svtools/source/graphic/graphicunofactory.cxx
index a55acad..fe3ed7b 100644
--- a/svtools/source/graphic/graphicunofactory.cxx
+++ b/svtools/source/graphic/graphicunofactory.cxx
@@ -37,7 +37,7 @@ typedef ::cppu::WeakImplHelper2< graphic::XGraphicObject, css::lang::XServiceInf
 class GObjectImpl : public GObjectAccess_BASE
 {
      ::osl::Mutex m_aMutex;
-     std::auto_ptr< GraphicObject > mpGObject;
+     std::unique_ptr< GraphicObject > mpGObject;
 public:
     GObjectImpl(uno::Sequence< uno::Any > const & args) throw (uno::RuntimeException);
 
diff --git a/svtools/source/svhtml/htmlsupp.cxx b/svtools/source/svhtml/htmlsupp.cxx
index 7069e4e..2b3f89d 100644
--- a/svtools/source/svhtml/htmlsupp.cxx
+++ b/svtools/source/svhtml/htmlsupp.cxx
@@ -52,7 +52,7 @@ bool HTMLParser::ParseScriptOptions( OUString& rLangString, const OUString& rBas
 
     for( size_t i = aScriptOptions.size(); i; )
     {
-        const HTMLOption& aOption = aScriptOptions[--i];
+        const HTMLOption& aOption = *aScriptOptions[--i];
         switch( aOption.GetToken() )
         {
         case HTML_O_LANGUAGE:
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index 7b04001..265427d 100644
--- a/svtools/source/svhtml/parhtml.cxx
+++ b/svtools/source/svhtml/parhtml.cxx
@@ -38,6 +38,7 @@
 #include <svtools/htmlkywd.hxx>
 
 #include <memory>
+#include <utility>
 
 using namespace ::com::sun::star;
 
@@ -1579,10 +1580,10 @@ const HTMLOptions& HTMLParser::GetOptions( sal_uInt16 *pNoConvertToken )
             }
 
             // Token is known and can be saved
-            std::auto_ptr<HTMLOption> pOption(
+            std::unique_ptr<HTMLOption> pOption(
                 new HTMLOption(sal::static_int_cast<sal_uInt16>(nToken), sName, aValue));
 
-            maOptions.push_back(pOption);
+            maOptions.push_back(std::move(pOption));
         }
         else
             // Ignore white space and unexpected characters
@@ -2067,7 +2068,7 @@ bool HTMLParser::ParseMetaOptionsImpl(
 
     for ( size_t i = aOptions.size(); i; )
     {
-        const HTMLOption& aOption = aOptions[--i];
+        const HTMLOption& aOption = *aOptions[--i];
         switch ( aOption.GetToken() )
         {
             case HTML_O_NAME:
diff --git a/svtools/source/toolpanel/tablayouter.cxx b/svtools/source/toolpanel/tablayouter.cxx
index 68a09a3..39a0874 100644
--- a/svtools/source/toolpanel/tablayouter.cxx
+++ b/svtools/source/toolpanel/tablayouter.cxx
@@ -41,7 +41,7 @@ namespace svt
     {
         TabAlignment                    eAlignment;
         IToolPanelDeck&                 rPanels;
-        ::std::auto_ptr< PanelTabBar >  pTabBar;
+        ::std::unique_ptr< PanelTabBar > pTabBar;
         AccessibleFactoryAccess         aAccessibleFactory;
 
         TabDeckLayouter_Data( vcl::Window& i_rParent, IToolPanelDeck& i_rPanels,
diff --git a/svtools/source/toolpanel/toolpanelcollection.hxx b/svtools/source/toolpanel/toolpanelcollection.hxx
index 88feb37..fcce675 100644
--- a/svtools/source/toolpanel/toolpanelcollection.hxx
+++ b/svtools/source/toolpanel/toolpanelcollection.hxx
@@ -52,7 +52,7 @@ namespace svt
         virtual void        RemoveListener( IToolPanelDeckListener& i_rListener ) SAL_OVERRIDE;
 
     private:
-        ::std::auto_ptr< ToolPanelCollection_Data > m_pData;
+        ::std::unique_ptr< ToolPanelCollection_Data > m_pData;
     };
 
 
diff --git a/svtools/source/toolpanel/toolpaneldrawer.hxx b/svtools/source/toolpanel/toolpaneldrawer.hxx
index 3186ca1..3a81534 100644
--- a/svtools/source/toolpanel/toolpaneldrawer.hxx
+++ b/svtools/source/toolpanel/toolpaneldrawer.hxx
@@ -96,7 +96,7 @@ namespace svt
         using Window::Paint;
 
     private:
-        ::std::auto_ptr< VirtualDevice >    m_pPaintDevice;
+        ::std::unique_ptr< VirtualDevice >  m_pPaintDevice;
         DrawerVisualization                 m_aVisualization;
         bool                                m_bFocused;
         bool                                m_bExpanded;
diff --git a/sw/source/filter/html/htmlcss1.cxx b/sw/source/filter/html/htmlcss1.cxx
index d333b6d..9881feb 100644
--- a/sw/source/filter/html/htmlcss1.cxx
+++ b/sw/source/filter/html/htmlcss1.cxx
@@ -1684,7 +1684,7 @@ void SwHTMLParser::NewStyle()
     const HTMLOptions& rOptions2 = GetOptions();
     for (size_t i = rOptions2.size(); i; )
     {
-        const HTMLOption& rOption = rOptions2[--i];
+        const HTMLOption& rOption = *rOptions2[--i];
         if( HTML_O_TYPE == rOption.GetToken() )
             sType = rOption.GetString();
     }
@@ -1763,7 +1763,7 @@ void SwHTMLParser::InsertLink()
         const HTMLOptions& rOptions2 = GetOptions();
         for (size_t i = rOptions2.size(); i; )
         {
-            const HTMLOption& rOption = rOptions2[--i];
+            const HTMLOption& rOption = *rOptions2[--i];
             switch( rOption.GetToken() )
             {
                 case HTML_O_REL:
diff --git a/sw/source/filter/html/htmldrawreader.cxx b/sw/source/filter/html/htmldrawreader.cxx
index b680b5e..aea59ed 100644
--- a/sw/source/filter/html/htmldrawreader.cxx
+++ b/sw/source/filter/html/htmldrawreader.cxx
@@ -270,7 +270,7 @@ void SwHTMLParser::NewMarquee( HTMLTable *pCurTable )
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = 0, n = rHTMLOptions.size(); i < n; ++i)
     {
-        const HTMLOption& rOption = rHTMLOptions[i];
+        const HTMLOption& rOption = *rHTMLOptions[i];
         switch( rOption.GetToken() )
         {
             case HTML_O_ID:
diff --git a/sw/source/filter/html/htmlfld.cxx b/sw/source/filter/html/htmlfld.cxx
index 079f479..79d4848 100644
--- a/sw/source/filter/html/htmlfld.cxx
+++ b/sw/source/filter/html/htmlfld.cxx
@@ -219,7 +219,7 @@ void SwHTMLParser::NewField()
 
     for ( i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
         case HTML_O_TYPE:
diff --git a/sw/source/filter/html/htmlform.cxx b/sw/source/filter/html/htmlform.cxx
index b4353db..41d9575 100644
--- a/sw/source/filter/html/htmlform.cxx
+++ b/sw/source/filter/html/htmlform.cxx
@@ -1259,7 +1259,7 @@ void SwHTMLParser::NewForm( bool bAppend )
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         ScriptType eScriptType2 = eDfltScriptType;
         sal_uInt16 nEvent = 0;
         bool bSetEvent = false;
@@ -1428,7 +1428,7 @@ void SwHTMLParser::InsertInput()
     const HTMLOptions& rHTMLOptions = GetOptions( &nKeepCRLFToken );
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         ScriptType eScriptType2 = eDfltScriptType;
         sal_uInt16 nEvent = 0;
         bool bSetEvent = false;
@@ -1911,7 +1911,7 @@ void SwHTMLParser::NewTextArea()
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         ScriptType eScriptType2 = eDfltScriptType;
         sal_uInt16 nEvent = 0;
         bool bSetEvent = false;
@@ -2193,7 +2193,7 @@ void SwHTMLParser::NewSelect()
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         ScriptType eScriptType2 = eDfltScriptType;
         sal_uInt16 nEvent = 0;
         bool bSetEvent = false;
@@ -2480,7 +2480,7 @@ void SwHTMLParser::InsertSelectOption()
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
         case HTML_O_ID:
diff --git a/sw/source/filter/html/htmlgrin.cxx b/sw/source/filter/html/htmlgrin.cxx
index 83db824..9f591b0 100644
--- a/sw/source/filter/html/htmlgrin.cxx
+++ b/sw/source/filter/html/htmlgrin.cxx
@@ -330,7 +330,7 @@ void SwHTMLParser::InsertImage()
     {
         sal_uInt16 nEvent = 0;
         ScriptType eScriptType2 = eDfltScriptType;
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
             case HTML_O_ID:
@@ -833,7 +833,7 @@ void SwHTMLParser::InsertBodyOptions()
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         ScriptType eScriptType2 = eDfltScriptType;
         OUString aEvent;
         bool bSetEvent = false;
@@ -1072,7 +1072,7 @@ void SwHTMLParser::NewAnchor()
     {
         sal_uInt16 nEvent = 0;
         ScriptType eScriptType2 = eDfltScriptType;
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
             case HTML_O_NAME:
diff --git a/sw/source/filter/html/htmlnumreader.cxx b/sw/source/filter/html/htmlnumreader.cxx
index bb5efeb..8af53310 100644
--- a/sw/source/filter/html/htmlnumreader.cxx
+++ b/sw/source/filter/html/htmlnumreader.cxx
@@ -137,7 +137,7 @@ void SwHTMLParser::NewNumBulList( int nToken )
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
         case HTML_O_ID:
@@ -440,7 +440,7 @@ void SwHTMLParser::NewNumBulListItem( int nToken )
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
             case HTML_O_VALUE:
diff --git a/sw/source/filter/html/htmlplug.cxx b/sw/source/filter/html/htmlplug.cxx
index a33737b..d5e8c2f 100644
--- a/sw/source/filter/html/htmlplug.cxx
+++ b/sw/source/filter/html/htmlplug.cxx
@@ -311,7 +311,7 @@ void SwHTMLParser::InsertEmbed()
     // Wert einer Option beruecksichtigt werden.
     for (size_t i = 0, n = rHTMLOptions.size(); i < n; ++i)
     {
-        const HTMLOption& rOption = rHTMLOptions[i];
+        const HTMLOption& rOption = *rHTMLOptions[i];
         switch( rOption.GetToken() )
         {
         case HTML_O_ID:
@@ -507,7 +507,7 @@ void SwHTMLParser::NewObject()
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
         case HTML_O_ID:
@@ -675,7 +675,7 @@ void SwHTMLParser::InsertApplet()
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
         case HTML_O_ID:
@@ -800,7 +800,7 @@ void SwHTMLParser::InsertParam()
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
         case HTML_O_NAME:
@@ -833,7 +833,7 @@ void SwHTMLParser::InsertFloatingFrame()
     // Erstmal die Optionen f?r das Writer-Frame-Format holen
     for (size_t i = 0, n = rHTMLOptions.size(); i < n; ++i)
     {
-        const HTMLOption& rOption = rHTMLOptions[i];
+        const HTMLOption& rOption = *rHTMLOptions[i];
         switch( rOption.GetToken() )
         {
         case HTML_O_ID:
diff --git a/sw/source/filter/html/htmlsect.cxx b/sw/source/filter/html/htmlsect.cxx
index 65c924a..badf438 100644
--- a/sw/source/filter/html/htmlsect.cxx
+++ b/sw/source/filter/html/htmlsect.cxx
@@ -72,7 +72,7 @@ void SwHTMLParser::NewDivision( int nToken )
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
         case HTML_O_ID:
@@ -549,7 +549,7 @@ void SwHTMLParser::NewMultiCol( sal_uInt16 columnsFromCss )
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
         case HTML_O_ID:
diff --git a/sw/source/filter/html/htmltab.cxx b/sw/source/filter/html/htmltab.cxx
index 4b352c7..fcae16b 100644
--- a/sw/source/filter/html/htmltab.cxx
+++ b/sw/source/filter/html/htmltab.cxx
@@ -3141,7 +3141,7 @@ _CellSaveStruct::_CellSaveStruct( SwHTMLParser& rParser, HTMLTable *pCurTable,
         const HTMLOptions& rOptions = rParser.GetOptions();
         for (size_t i = rOptions.size(); i; )
         {
-            const HTMLOption& rOption = rOptions[--i];
+            const HTMLOption& rOption = *rOptions[--i];
             switch( rOption.GetToken() )
             {
             case HTML_O_ID:
@@ -3898,7 +3898,7 @@ void SwHTMLParser::BuildTableCell( HTMLTable *pCurTable, bool bReadOptions,
                         const HTMLOptions& rHTMLOptions = GetOptions();
                         for (size_t i = 0; i < rHTMLOptions.size(); ++i)
                         {
-                            const HTMLOption& rOption = rHTMLOptions[i];
+                            const HTMLOption& rOption = *rHTMLOptions[i];
                             if( HTML_O_ALIGN==rOption.GetToken() )
                             {
                                 SvxAdjust eAdjust =
@@ -4188,7 +4188,7 @@ void SwHTMLParser::BuildTableRow( HTMLTable *pCurTable, bool bReadOptions,
             const HTMLOptions& rHTMLOptions = GetOptions();
             for (size_t i = rHTMLOptions.size(); i; )
             {
-                const HTMLOption& rOption = rHTMLOptions[--i];
+                const HTMLOption& rOption = *rHTMLOptions[--i];
                 switch( rOption.GetToken() )
                 {
                 case HTML_O_ID:
@@ -4388,7 +4388,7 @@ void SwHTMLParser::BuildTableSection( HTMLTable *pCurTable,
             const HTMLOptions& rHTMLOptions = GetOptions();
             for (size_t i = rHTMLOptions.size(); i; )
             {
-                const HTMLOption& rOption = rHTMLOptions[--i];
+                const HTMLOption& rOption = *rHTMLOptions[--i];
                 switch( rOption.GetToken() )
                 {
                 case HTML_O_ID:
@@ -4575,7 +4575,7 @@ void SwHTMLParser::BuildTableColGroup( HTMLTable *pCurTable,
             const HTMLOptions& rColGrpOptions = GetOptions();
             for (size_t i = rColGrpOptions.size(); i; )
             {
-                const HTMLOption& rOption = rColGrpOptions[--i];
+                const HTMLOption& rOption = *rColGrpOptions[--i];
                 switch( rOption.GetToken() )
                 {
                 case HTML_O_ID:
@@ -4659,7 +4659,7 @@ void SwHTMLParser::BuildTableColGroup( HTMLTable *pCurTable,
                 const HTMLOptions& rColOptions = GetOptions();
                 for (size_t i = rColOptions.size(); i; )
                 {
-                    const HTMLOption& rOption = rColOptions[--i];
+                    const HTMLOption& rOption = *rColOptions[--i];
                     switch( rOption.GetToken() )
                     {
                     case HTML_O_ID:
@@ -4804,7 +4804,7 @@ void SwHTMLParser::BuildTableCaption( HTMLTable *pCurTable )
         const HTMLOptions& rHTMLOptions = GetOptions();
         for ( size_t i = rHTMLOptions.size(); i; )
         {
-            const HTMLOption& rOption = rHTMLOptions[--i];
+            const HTMLOption& rOption = *rHTMLOptions[--i];
             if( HTML_O_ALIGN == rOption.GetToken() )
             {
                 if (rOption.GetString().equalsIgnoreAsciiCase(
@@ -5033,7 +5033,7 @@ HTMLTableOptions::HTMLTableOptions( const HTMLOptions& rOptions,
 
     for (size_t i = rOptions.size(); i; )
     {
-        const HTMLOption& rOption = rOptions[--i];
+        const HTMLOption& rOption = *rOptions[--i];
         switch( rOption.GetToken() )
         {
         case HTML_O_ID:
diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx
index ead0539..fdeeb61 100644
--- a/sw/source/filter/html/swhtml.cxx
+++ b/sw/source/filter/html/swhtml.cxx
@@ -1288,7 +1288,7 @@ void SwHTMLParser::NextToken( int nToken )
             const HTMLOptions& rHTMLOptions = GetOptions();
             for (size_t i = rHTMLOptions.size(); i; )
             {
-                const HTMLOption& rOption = rHTMLOptions[--i];
+                const HTMLOption& rOption = *rHTMLOptions[--i];
                 switch( rOption.GetToken() )
                 {
                 case HTML_O_HREF:
@@ -1900,7 +1900,7 @@ void SwHTMLParser::NextToken( int nToken )
             const HTMLOptions& rHTMLOptions = GetOptions();
             for (size_t i = rHTMLOptions.size(); i; )
             {
-                const HTMLOption& rOption = rHTMLOptions[--i];
+                const HTMLOption& rOption = *rHTMLOptions[--i];
                 if( HTML_O_DIR == rOption.GetToken() )
                 {
                     const OUString& rDir = rOption.GetString();
@@ -3430,7 +3430,7 @@ void SwHTMLParser::NewStdAttr( int nToken )
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
         case HTML_O_ID:
@@ -3483,7 +3483,7 @@ void SwHTMLParser::NewStdAttr( int nToken,
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
         case HTML_O_ID:
@@ -3563,7 +3563,7 @@ void SwHTMLParser::NewBasefontAttr()
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
         case HTML_O_SIZE:
@@ -3664,7 +3664,7 @@ void SwHTMLParser::NewFontAttr( int nToken )
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
         case HTML_O_SIZE:
@@ -3883,7 +3883,7 @@ void SwHTMLParser::NewPara()
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
             case HTML_O_ID:
@@ -4002,7 +4002,7 @@ void SwHTMLParser::NewHeading( int nToken )
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
             case HTML_O_ID:
@@ -4126,7 +4126,7 @@ void SwHTMLParser::NewTxtFmtColl( int nToken, sal_uInt16 nColl )
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
             case HTML_O_ID:
@@ -4254,7 +4254,7 @@ void SwHTMLParser::NewDefList()
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
             case HTML_O_ID:
@@ -4769,7 +4769,7 @@ void SwHTMLParser::NewCharFmt( int nToken )
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
         case HTML_O_ID:
@@ -4837,7 +4837,7 @@ void SwHTMLParser::InsertSpacer()
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
         case HTML_O_ID:
@@ -5039,7 +5039,7 @@ void SwHTMLParser::InsertIDOption()
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         if( HTML_O_ID==rOption.GetToken() )
         {
             aId = rOption.GetString();
@@ -5077,7 +5077,7 @@ void SwHTMLParser::InsertLineBreak()
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
             case HTML_O_CLEAR:
@@ -5224,7 +5224,7 @@ void SwHTMLParser::InsertHorzRule()
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
         case HTML_O_ID:
@@ -5377,7 +5377,7 @@ void SwHTMLParser::ParseMoreMetaOptions()
     const HTMLOptions& rHTMLOptions = GetOptions();
     for (size_t i = rHTMLOptions.size(); i; )
     {
-        const HTMLOption& rOption = rHTMLOptions[--i];
+        const HTMLOption& rOption = *rHTMLOptions[--i];
         switch( rOption.GetToken() )
         {
         case HTML_O_NAME:


More information about the Libreoffice-commits mailing list