summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-07-10 12:44:11 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-07-10 12:44:11 +0200
commitac46405ca62fcc7d7a7e8004c0c44b330956e39c (patch)
tree050c4d460f308206225336c908aa4c005221f573
parentadced867c695d621fae582b36ee0b2bdfe3b8e15 (diff)
-Werror,-Wunused-private-field
Change-Id: Ie3feae1a6bac2e5a51d38fb402525097483313e2
-rw-r--r--vcl/inc/outdev.h5
-rw-r--r--vcl/source/font/PhysicalFontCollection.cxx2
2 files changed, 3 insertions, 4 deletions
diff --git a/vcl/inc/outdev.h b/vcl/inc/outdev.h
index 256e19e99ddb..a4cc54f43bdd 100644
--- a/vcl/inc/outdev.h
+++ b/vcl/inc/outdev.h
@@ -55,12 +55,11 @@ public:
class ImplGetDevSizeList
{
private:
- OUString maFontName;
std::vector<int> maSizeList;
public:
- ImplGetDevSizeList( const OUString& rFontName )
- : maFontName( rFontName ) { maSizeList.reserve( 32 ); }
+ ImplGetDevSizeList()
+ { maSizeList.reserve( 32 ); }
void Add( int nHeight ) { maSizeList.push_back( nHeight ); }
int Count() const { return maSizeList.size(); }
int Get( int nIndex ) const { return maSizeList[ nIndex ]; }
diff --git a/vcl/source/font/PhysicalFontCollection.cxx b/vcl/source/font/PhysicalFontCollection.cxx
index 942e50884a11..dc4c18517816 100644
--- a/vcl/source/font/PhysicalFontCollection.cxx
+++ b/vcl/source/font/PhysicalFontCollection.cxx
@@ -983,7 +983,7 @@ ImplGetDevFontList* PhysicalFontCollection::GetDevFontList() const
ImplGetDevSizeList* PhysicalFontCollection::GetDevSizeList( const OUString& rFontName ) const
{
- ImplGetDevSizeList* pGetDevSizeList = new ImplGetDevSizeList( rFontName );
+ ImplGetDevSizeList* pGetDevSizeList = new ImplGetDevSizeList;
PhysicalFontFamily* pFontFamily = FindFontFamily( rFontName );
if( pFontFamily != NULL )