StelIniParser.hpp   StelIniParser.hpp 
skipping to change at line 28 skipping to change at line 28
*/ */
#ifndef _STELINIPARSER_HPP_ #ifndef _STELINIPARSER_HPP_
#define _STELINIPARSER_HPP_ #define _STELINIPARSER_HPP_
#include <QSettings> #include <QSettings>
// QSettings only gives us a binary file handle when writing the // QSettings only gives us a binary file handle when writing the
// ini file, so we must handle alternative end of line marks // ini file, so we must handle alternative end of line marks
// ourselves. // ourselves.
#if defined(WIN32) #ifdef Q_OS_WIN
static const QString stelEndl="\r\n"; static const QString stelEndl="\r\n";
#elif defined(MACOSX)
static const QString stelEndl="\r";
#else #else
static const QString stelEndl="\n"; static const QString stelEndl="\n";
#endif #endif
bool readStelIniFile(QIODevice &device, QSettings::SettingsMap &map); bool readStelIniFile(QIODevice &device, QSettings::SettingsMap &map);
bool writeStelIniFile(QIODevice &device, const QSettings::SettingsMap &map) ; bool writeStelIniFile(QIODevice &device, const QSettings::SettingsMap &map) ;
static const QSettings::Format StelIniFormat = QSettings::registerFormat("i ni", readStelIniFile, writeStelIniFile); static const QSettings::Format StelIniFormat = QSettings::registerFormat("i ni", readStelIniFile, writeStelIniFile);
#endif #endif
 End of changes. 2 change blocks. 
3 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/