summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-11 11:48:51 +0200
committerNoel Grandin <noel@peralex.com>2015-11-12 08:01:33 +0200
commitaeeef71b9850b77b7de468a9748c441314e3fa6e (patch)
treef2864c80ea4ded6020122858cd33ade4d331b854 /svtools
parentf6a4b3dff1066559631882548e130eb731aad7bf (diff)
svtools: boost::ptr_vector->std::vector
Change-Id: If03ab05ff90585285063705bf56527c6138e22fd
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/config/fontsubstconfig.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/svtools/source/config/fontsubstconfig.cxx b/svtools/source/config/fontsubstconfig.cxx
index 347df644fc58..e25836e43360 100644
--- a/svtools/source/config/fontsubstconfig.cxx
+++ b/svtools/source/config/fontsubstconfig.cxx
@@ -24,7 +24,7 @@
#include <tools/debug.hxx>
#include <vcl/outdev.hxx>
-#include <boost/ptr_container/ptr_vector.hpp>
+#include <vector>
using namespace utl;
using namespace com::sun::star;
@@ -40,7 +40,7 @@ const sal_Char cSubstituteFont[]= "SubstituteFont";
const sal_Char cOnScreenOnly[] = "OnScreenOnly";
const sal_Char cAlways[] = "Always";
-typedef boost::ptr_vector<SubstitutionStruct> SubstitutionStructArr;
+typedef std::vector<SubstitutionStruct> SubstitutionStructArr;
struct SvtFontSubstConfig_Impl
{
@@ -80,12 +80,12 @@ SvtFontSubstConfig::SvtFontSubstConfig() :
nName = 0;
for(nNode = 0; nNode < aNodeNames.getLength(); nNode++)
{
- SubstitutionStruct* pInsert = new SubstitutionStruct;
- pNodeValues[nName++] >>= pInsert->sFont;
- pNodeValues[nName++] >>= pInsert->sReplaceBy;
- pInsert->bReplaceAlways = *static_cast<sal_Bool const *>(pNodeValues[nName++].getValue());
- pInsert->bReplaceOnScreenOnly = *static_cast<sal_Bool const *>(pNodeValues[nName++].getValue());
- pImpl->aSubstArr.push_back(pInsert);
+ SubstitutionStruct aInsert;
+ pNodeValues[nName++] >>= aInsert.sFont;
+ pNodeValues[nName++] >>= aInsert.sReplaceBy;
+ aInsert.bReplaceAlways = *static_cast<sal_Bool const *>(pNodeValues[nName++].getValue());
+ aInsert.bReplaceOnScreenOnly = *static_cast<sal_Bool const *>(pNodeValues[nName++].getValue());
+ pImpl->aSubstArr.push_back(aInsert);
}
}
@@ -160,7 +160,7 @@ const SubstitutionStruct* SvtFontSubstConfig::GetSubstitution(sal_Int32 nPos)
void SvtFontSubstConfig::AddSubstitution(const SubstitutionStruct& rToAdd)
{
- pImpl->aSubstArr.push_back(new SubstitutionStruct(rToAdd));
+ pImpl->aSubstArr.push_back(rToAdd);
}
void SvtFontSubstConfig::Apply()