Rename project_version to ProjectVersion

This commit is contained in:
Lukas W
2014-11-26 01:16:26 +01:00
parent aaeb5216ad
commit fec779ff70
3 changed files with 13 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
/*
* project_version.h - version compared in import upgrades
* ProjectVersion.h - version compared in import upgrades
*
* Copyright (c) 2007 Javier Serrano Polo <jasp00/at/users.sourceforge.net>
*
@@ -29,25 +29,25 @@
#include <QtCore/QString>
class projectVersion : public QString
class ProjectVersion : public QString
{
public:
projectVersion( const QString & _s ) :
ProjectVersion( const QString & _s ) :
QString( _s )
{
}
static int compare( const projectVersion & _v1,
const projectVersion & _v2 );
static int compare( const ProjectVersion & _v1,
const ProjectVersion & _v2 );
} ;
inline bool operator<( const projectVersion & _v1, const char * _str )
inline bool operator<( const ProjectVersion & _v1, const char * _str )
{
return projectVersion::compare( _v1, projectVersion( _str ) ) < 0;
return ProjectVersion::compare( _v1, ProjectVersion( _str ) ) < 0;
}

View File

@@ -36,7 +36,7 @@
#include "ConfigManager.h"
#include "project_version.h"
#include "ProjectVersion.h"
#include "SongEditor.h"
#include "Effect.h"
#include "lmmsversion.h"
@@ -327,7 +327,7 @@ void DataFile::cleanMetaNodes( QDomElement _de )
void DataFile::upgrade()
{
projectVersion version =
ProjectVersion version =
documentElement().attribute( "creatorversion" ).
replace( "svn", "" );

View File

@@ -1,5 +1,5 @@
/*
* project_version.cpp - compare versions in import upgrades
* ProjectVersion.cpp - compare versions in import upgrades
*
* Copyright (c) 2007 Javier Serrano Polo <jasp00/at/users.sourceforge.net>
* Copyright (c) 2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
@@ -26,13 +26,13 @@
#include "project_version.h"
#include "ProjectVersion.h"
int projectVersion::compare( const projectVersion & _v1,
const projectVersion & _v2 )
int ProjectVersion::compare( const ProjectVersion & _v1,
const ProjectVersion & _v2 )
{
int n1, n2;