Using qDebug() instead of iostream::cout(). And formatted files with clangformat.
This commit is contained in:
@ -1,19 +1,11 @@
|
|||||||
#include "genericcore.h"
|
#include "genericcore.h"
|
||||||
|
|
||||||
#include <iostream>
|
#include <QDebug>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
GenericCore::GenericCore()
|
GenericCore::GenericCore() { qDebug() << "Creating core..."; }
|
||||||
{
|
|
||||||
cout << "Creating core..." << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
GenericCore::~GenericCore()
|
GenericCore::~GenericCore() { qDebug() << "Destroying core..."; }
|
||||||
{
|
|
||||||
cout << "Destroying core..." << endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GenericCore::sayHello() const
|
void GenericCore::sayHello() const { qDebug() << "Hello from the core!"; }
|
||||||
{
|
|
||||||
cout << "Hello from the core!" << endl;
|
|
||||||
}
|
|
||||||
|
|||||||
@ -1,13 +1,12 @@
|
|||||||
#ifndef GENERICCORE_H
|
#ifndef GENERICCORE_H
|
||||||
#define GENERICCORE_H
|
#define GENERICCORE_H
|
||||||
|
|
||||||
class GenericCore
|
class GenericCore {
|
||||||
{
|
public:
|
||||||
public:
|
GenericCore();
|
||||||
GenericCore();
|
~GenericCore();
|
||||||
~GenericCore();
|
|
||||||
|
|
||||||
void sayHello() const;
|
void sayHello() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // GENERICCORE_H
|
#endif // GENERICCORE_H
|
||||||
|
|||||||
Reference in New Issue
Block a user