Using qDebug() instead of iostream::cout(). And formatted files with clangformat.

This commit is contained in:
2025-10-02 16:22:01 +02:00
parent b3718c211f
commit 0bbac662f4
2 changed files with 11 additions and 20 deletions

View File

@ -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;
}

View File

@ -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