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