More constness

wilder-portage
Jekyll Wu 14 years ago
parent 089a697521
commit 5a4fdd2f58
  1. 4
      src/ColorScheme.cpp
  2. 4
      src/ColorScheme.h

@ -294,7 +294,7 @@ qreal ColorScheme::opacity() const
return _opacity;
}
void ColorScheme::read(KConfig& config)
void ColorScheme::read(const KConfig& config)
{
KConfigGroup configGroup = config.group("General");
@ -309,7 +309,7 @@ void ColorScheme::read(KConfig& config)
}
}
void ColorScheme::readColorEntry(KConfig& config , int index)
void ColorScheme::readColorEntry(const KConfig& config , int index)
{
KConfigGroup configGroup(&config, colorNameForIndex(index));

@ -96,7 +96,7 @@ public:
QString name() const;
/** Reads the color scheme from the specified configuration source */
void read(KConfig& config);
void read(const KConfig& config);
/** Writes the color scheme to the specified configuration source */
void write(KConfig& config) const;
@ -198,7 +198,7 @@ private:
// reads a single color entry from a KConfig source
// and sets the palette entry at 'index' to the entry read.
void readColorEntry(KConfig& config , int index);
void readColorEntry(const KConfig& config , int index);
// writes a single color entry to a KConfig source
void writeColorEntry(KConfig& config , int index) const;

Loading…
Cancel
Save