mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-28 00:45:34 -04:00
fixed compilation. Qt is completely gone
This commit is contained in:
parent
7dc5c90d63
commit
b323a1635e
14 changed files with 13 additions and 234 deletions
|
@ -30,11 +30,9 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifndef UTILS_USEFUL_H
|
||||
#define UTILS_USEFUL_H
|
||||
#pragma once
|
||||
|
||||
#include <QtGlobal>
|
||||
#include <QDebug>
|
||||
#include "util/rsdebug.h"
|
||||
|
||||
/* Print a warning for bug conditions, and assert on a debug build.
|
||||
*
|
||||
|
@ -50,7 +48,7 @@
|
|||
* triggered unless the code or logic is wrong.
|
||||
*/
|
||||
#if !defined(QT_NO_DEBUG) || defined(QT_FORCE_ASSERTS)
|
||||
# define BUG() Explode(__FILE__,__LINE__), qWarning() << "BUG:"
|
||||
# define BUG() Explode(__FILE__,__LINE__), RsWarn() << "BUG:"
|
||||
namespace {
|
||||
class Explode
|
||||
{
|
||||
|
@ -59,13 +57,10 @@ public:
|
|||
int line;
|
||||
Explode(const char *file, int line) : file(file), line(line) { }
|
||||
~Explode() {
|
||||
qt_assert("something broke!", file, line);
|
||||
RsErr() << "something broke! in file " << file << line;
|
||||
}
|
||||
};
|
||||
}
|
||||
#else
|
||||
# define BUG() qWarning() << "BUG:"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue