summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-09-29 13:56:43 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-09-29 13:57:17 +0200
commit014e7933af751bfe0a03867373b82efa806f3a3d (patch)
tree59be1f8b861bb6bb8a54e4c028683f15f0c615cf
parent14157dcdf175f1ef45903f7ec3ed85d0f7c76798 (diff)
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
-rw-r--r--dbaccess/source/ui/misc/HtmlReader.cxx8
-rw-r--r--editeng/source/editeng/eehtml.cxx6
-rw-r--r--include/svtools/brwbox.hxx2
-rw-r--r--include/svtools/dialogcontrolling.hxx4
-rw-r--r--include/svtools/editbrowsebox.hxx2
-rw-r--r--include/svtools/parhtml.hxx9
-rw-r--r--include/svtools/toolpanel/paneltabbar.hxx2
-rw-r--r--include/svtools/toolpanel/tablayouter.hxx2
-rw-r--r--include/svtools/toolpanel/toolpaneldeck.hxx2
-rw-r--r--sc/source/filter/html/htmlpars.cxx48
-rw-r--r--sfx2/source/bastyp/frmhtml.cxx2
-rw-r--r--sfx2/source/bastyp/sfxhtml.cxx4
-rw-r--r--svtools/source/edit/svmedit.cxx2
-rw-r--r--svtools/source/graphic/graphicunofactory.cxx2
-rw-r--r--svtools/source/svhtml/htmlsupp.cxx2
-rw-r--r--svtools/source/svhtml/parhtml.cxx7
-rw-r--r--svtools/source/toolpanel/tablayouter.cxx2
-rw-r--r--svtools/source/toolpanel/toolpanelcollection.hxx2
-rw-r--r--svtools/source/toolpanel/toolpaneldrawer.hxx2
-rw-r--r--sw/source/filter/html/htmlcss1.cxx4
-rw-r--r--sw/source/filter/html/htmldrawreader.cxx2
-rw-r--r--sw/source/filter/html/htmlfld.cxx2
-rw-r--r--sw/source/filter/html/htmlform.cxx10
-rw-r--r--sw/source/filter/html/htmlgrin.cxx6
-rw-r--r--sw/source/filter/html/htmlnumreader.cxx4
-rw-r--r--sw/source/filter/html/htmlplug.cxx10
-rw-r--r--sw/source/filter/html/htmlsect.cxx4
-rw-r--r--sw/source/filter/html/htmltab.cxx16
-rw-r--r--sw/source/filter/html/swhtml.cxx32
29 files changed, 102 insertions, 98 deletions
diff --git a/dbaccess/source/ui/misc/HtmlReader.cxx b/dbaccess/source/ui/misc/HtmlReader.cxx
index 67556a3051cb..1fba4c04ceba 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 15d8c59f54cd..384588409062 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 e16e0de43401..f0e47cad5c89 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 cf455bea9f3b..150e934ca464 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 cb696925e260..9a9722d36212 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 ed4f4c386fcf..09027f46e2c6 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 0964d79c9e40..18e4d1ea1197 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 3ad6060df5df..fb106270b21f 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 48127c569fd6..d9c06ced6771 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 00ce6f1b7253..28dc7e4355f9 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 c667f1948492..dd14e59414d9 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 0e036c90d222..ccc11d0703bd 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 3f645d556932..faaab3e87328 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 a55acad7a800..fe3ed7b7060c 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 7069e4e2a07e..2b3f89dd8998 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 7b04001cec6c..265427de172e 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 68a09a37b655..39a0874d824a 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 88feb379ce59..fcce67523325 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 3186ca1f6cfc..3a815345e2b6 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 d333b6df580d..9881febf77ad 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 b680b5e94f05..aea59edf6c2f 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 079f4792104d..79d484863a67 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 b4353db683bb..41d9575d98b8 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 83db8243380b..9f591b04c63c 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 bb5efeb872d7..8af533105ff2 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 a33737b5171b..d5e8c2fc9deb 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 65c924abc2fc..badf4382092e 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 4b352c7e1852..fcae16bd404f 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 ead053964fbe..fdeeb61a8b53 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: