summaryrefslogtreecommitdiff
path: root/sfx2/source/bastyp/sfxhtml.cxx
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 /sfx2/source/bastyp/sfxhtml.cxx
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
Diffstat (limited to 'sfx2/source/bastyp/sfxhtml.cxx')
-rw-r--r--sfx2/source/bastyp/sfxhtml.cxx4
1 files changed, 2 insertions, 2 deletions
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: