mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-25 02:45:38 +00:00
Q3Dict->QHash
svn path=/trunk/KDE/kdegraphics/okular/; revision=1075707
This commit is contained in:
parent
da899f862e
commit
e285cd125f
|
@ -16,10 +16,14 @@
|
|||
fontEncodingPool::fontEncodingPool()
|
||||
{}
|
||||
|
||||
fontEncodingPool::~fontEncodingPool()
|
||||
{
|
||||
qDeleteAll(dictionary);
|
||||
}
|
||||
|
||||
fontEncoding *fontEncodingPool::findByName(const QString &name)
|
||||
{
|
||||
fontEncoding *ptr = dictionary.find( name );
|
||||
fontEncoding *ptr = dictionary.value( name );
|
||||
|
||||
if (ptr == 0) {
|
||||
ptr = new fontEncoding(name);
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#include "fontEncoding.h"
|
||||
|
||||
#include <Q3Dict>
|
||||
#include <QHash>
|
||||
|
||||
class QString;
|
||||
|
||||
|
@ -19,11 +19,12 @@ class QString;
|
|||
class fontEncodingPool {
|
||||
public:
|
||||
fontEncodingPool();
|
||||
~fontEncodingPool();
|
||||
|
||||
fontEncoding *findByName(const QString &name);
|
||||
|
||||
private:
|
||||
Q3Dict<fontEncoding> dictionary;
|
||||
QHash<QString,fontEncoding*> dictionary;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue