Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
Remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pasnox committed Jul 31, 2012
1 parent 04dbda9 commit 31fb296
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/syntax/SyntaxDocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ bool Syntax::Document::operator!=( const Syntax::Document& other ) const

bool Syntax::Document::operator<( const Syntax::Document& other ) const
{
// HINT: compare priority too ?
return QodeEdit::localeAwareStringLessThan(
localizedName.isEmpty() ? name : localizedName,
other.localizedName.isEmpty() ? other.name : other.localizedName
Expand Down Expand Up @@ -124,10 +125,6 @@ QHash<QString, Syntax::Document> Syntax::Document::open( const QStringList& file
xmlReader.setLexicalHandler( &parser );

foreach ( const QString& filePath, filePaths ) {
#if !defined( QT_NO_DEBUG )
qWarning() << QString( "--- Parsing %1" ).arg( QFileInfo( filePath ).fileName() ).toLocal8Bit().constData();
#endif

QFile file( filePath );

if ( !file.exists() ) {
Expand Down

0 comments on commit 31fb296

Please sign in to comment.