Commit 1d853788 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Compile fix

parent b754df90
......@@ -323,7 +323,7 @@ void MagicRuleMatcher::setPriority(int p)
}
// GlobPattern
MimeGlobPattern::MimeGlobPattern(const QRegExp &regExp, int weight) :
MimeGlobPattern::MimeGlobPattern(const QRegExp &regExp, unsigned weight) :
m_regExp(regExp), m_weight(weight)
{
}
......@@ -337,7 +337,7 @@ const QRegExp &MimeGlobPattern::regExp() const
return m_regExp;
}
int MimeGlobPattern::weight() const
unsigned MimeGlobPattern::weight() const
{
return m_weight;
}
......@@ -390,7 +390,7 @@ void MimeTypeData::debug(QTextStream &str, int indent) const
if (!globPatterns.empty()) {
str << indentS << "Glob: ";
foreach (const MimeGlobPattern &gp, globPatterns)
str << gp.regExp().pattern() << ' (' << gp.weight() << ') ';
str << gp.regExp().pattern() << '(' << gp.weight() << ')';
str << '\n';
if (!suffixes.empty()) {
str << indentS << "Suffixes: " << suffixes.join(comma)
......
......@@ -139,18 +139,18 @@ private:
class CORE_EXPORT MimeGlobPattern
{
public:
static const int MaxWeight = 100;
static const int MinWeight = 1;
static const unsigned MaxWeight = 100;
static const unsigned MinWeight = 1;
explicit MimeGlobPattern(const QRegExp &regExp, int weight = MaxWeight);
explicit MimeGlobPattern(const QRegExp &regExp, unsigned weight = MaxWeight);
~MimeGlobPattern();
const QRegExp &regExp() const;
int weight() const;
unsigned weight() const;
private:
const QRegExp m_regExp;
const int m_weight;
QRegExp m_regExp;
int m_weight;
};
/* Mime type data used in Qt Creator. Contains most information from
......
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