Subversion Repositories Scribus

Compare Revisions

Regard whitespace Rev 12104 → Rev 12103

/trunk/Scribus/scribus/prefsfile.cpp
47,11 → 47,6
load();
}
 
bool PrefsFile::hasContext(const QString& contextName)
{
return contexts.contains(contextName);
}
 
PrefsContext* PrefsFile::getContext(const QString& contextName, bool persistent)
{
if (!contexts.contains(contextName))
75,12 → 70,16
 
void PrefsFile::load()
{
PrefsReader handler(&contexts, &pluginContexts);
QFile rc(prefsFilePath);
QXmlInputSource source(&rc);
QXmlSimpleReader reader;
reader.setContentHandler(&handler);
reader.parse(source);
PrefsReader* handler = new PrefsReader(&contexts, &pluginContexts);
QFile* rc = new QFile(prefsFilePath);
QXmlInputSource* source = new QXmlInputSource(rc);
QXmlSimpleReader* reader = new QXmlSimpleReader();
reader->setContentHandler(handler);
reader->parse(source);
delete reader;
delete source;
delete rc;
delete handler;
}
 
void PrefsFile::write()