Kaydet (Commit) ac46405c authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-Werror,-Wunused-private-field

Change-Id: Ie3feae1a6bac2e5a51d38fb402525097483313e2
üst adced867
...@@ -55,12 +55,11 @@ public: ...@@ -55,12 +55,11 @@ public:
class ImplGetDevSizeList class ImplGetDevSizeList
{ {
private: private:
OUString maFontName;
std::vector<int> maSizeList; std::vector<int> maSizeList;
public: public:
ImplGetDevSizeList( const OUString& rFontName ) ImplGetDevSizeList()
: maFontName( rFontName ) { maSizeList.reserve( 32 ); } { maSizeList.reserve( 32 ); }
void Add( int nHeight ) { maSizeList.push_back( nHeight ); } void Add( int nHeight ) { maSizeList.push_back( nHeight ); }
int Count() const { return maSizeList.size(); } int Count() const { return maSizeList.size(); }
int Get( int nIndex ) const { return maSizeList[ nIndex ]; } int Get( int nIndex ) const { return maSizeList[ nIndex ]; }
......
...@@ -983,7 +983,7 @@ ImplGetDevFontList* PhysicalFontCollection::GetDevFontList() const ...@@ -983,7 +983,7 @@ ImplGetDevFontList* PhysicalFontCollection::GetDevFontList() const
ImplGetDevSizeList* PhysicalFontCollection::GetDevSizeList( const OUString& rFontName ) const ImplGetDevSizeList* PhysicalFontCollection::GetDevSizeList( const OUString& rFontName ) const
{ {
ImplGetDevSizeList* pGetDevSizeList = new ImplGetDevSizeList( rFontName ); ImplGetDevSizeList* pGetDevSizeList = new ImplGetDevSizeList;
PhysicalFontFamily* pFontFamily = FindFontFamily( rFontName ); PhysicalFontFamily* pFontFamily = FindFontFamily( rFontName );
if( pFontFamily != NULL ) if( pFontFamily != NULL )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment