Skip to content

Commit

Permalink
- fix compilation on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Aug 4, 2015
1 parent 6fed9a7 commit 34843ab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions model/deviserbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ DeviserBase::DeviserBase()

}

DeviserBase::DeviserBase(const DeviserBase &)
: mPackage(mPackage)
DeviserBase::DeviserBase(const DeviserBase &other)
: mPackage(other.mPackage)
, mVersion(NULL)
, mUserData(NULL)
{
Expand Down
2 changes: 1 addition & 1 deletion model/deviserbase.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ template<typename T> void setParentOn(QList<T*>& list, DeviserPackage* parent, D
{
if (!list.empty())
{
for(QList<T*>::iterator it = list.begin(); it != list.end(); ++it)
for(typename QList<T*>::iterator it = list.begin(); it != list.end(); ++it)
{
(*it)->setParent(parent);
(*it)->setParentVersion(version);
Expand Down
5 changes: 4 additions & 1 deletion util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@

#include <QFile>
#include <QStringList>
#include <QString>
#include <QTextStream>

Util::Util()
{

}

QString Util::guessPlural(const QString &str)
QString Util::guessPlural(const QString &s)
{
QString str(s);
if (str.endsWith("Information")) return str;
if (str.endsWith("Index")) return str.replace("Index", "Indices");
if (str.endsWith("s")) return str;
Expand Down

0 comments on commit 34843ab

Please sign in to comment.