Whole code base: various cleanups, removed SINGLE_SOURCE_COMPILE relicts

* cleaned up code and improved coding style
* removed old SINGLE_SOURCE_COMPILE macro relicts
* use QString::toUtf8() instead of QString::toAscii() wherever possible

(cherry picked from commit 0bb54199b0)
This commit is contained in:
Tobias Doerffel committed 2009-08-05 17:17:57 +02:00
1 parent f969b7d892
commit edf2d4d104
108 files changed
+99 -380

No files matched your search

+3 -6
View File
@@ -1,10 +1,8 @@
#ifndef SINGLE_SOURCE_COMPILE
/*
* embed.cpp - misc stuff for using embedded resources (linked into binary)
*
* Copyright (c) 2004-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* Copyright (c) 2004-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
* This program is free software; you can redistribute it and/or
@@ -70,7 +68,7 @@ QPixmap getIconPixmap( const char * _name, int _w, int _h )
if( p.isNull() )
{
const embed::descriptor & e = findEmbeddedData(
name.toAscii().constData() );
name.toUtf8().constData() );
// found?
if( QString( e.name ) == name )
{
@@ -100,4 +98,3 @@ QString getText( const char * _name )
}
#endif