0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-25 00:18:06 +03:00

Define code style and format all source file using clang-format-14

except those placed in 3rdparty directories.
This commit is contained in:
Андрей Лухнов
2024-09-04 17:31:16 +03:00
parent c5b9ac265d
commit 0fca7169d3
285 changed files with 19120 additions and 17875 deletions

View File

@@ -4,29 +4,32 @@
#include "lrattribsabstractfactory.h"
#include "lrexporterintf.h"
namespace LimeReport{
namespace LimeReport {
typedef ReportExporterInterface* (*CreateExporter)(ReportEnginePrivate* parent);
struct ExporterAttribs{
struct ExporterAttribs {
QString m_alias;
QString m_tag;
ExporterAttribs(){}
ExporterAttribs(const QString& alias, const QString& tag):m_alias(alias),m_tag(tag){}
bool operator==( const ExporterAttribs &right) const {
return (m_alias==right.m_alias) && (m_tag==right.m_tag);
ExporterAttribs() { }
ExporterAttribs(const QString& alias, const QString& tag): m_alias(alias), m_tag(tag) { }
bool operator==(const ExporterAttribs& right) const
{
return (m_alias == right.m_alias) && (m_tag == right.m_tag);
}
};
class ExportersFactory : public AttribsAbstractFactory<LimeReport::ReportExporterInterface, QString, CreateExporter, ExporterAttribs>
{
class ExportersFactory:
public AttribsAbstractFactory<LimeReport::ReportExporterInterface, QString, CreateExporter,
ExporterAttribs> {
private:
friend class Singleton<ExportersFactory>;
private:
ExportersFactory(){}
~ExportersFactory(){}
ExportersFactory(const ExportersFactory&){}
ExportersFactory& operator = (const ExportersFactory&){return *this;}
ExportersFactory() { }
~ExportersFactory() { }
ExportersFactory(const ExportersFactory&) { }
ExportersFactory& operator=(const ExportersFactory&) { return *this; }
};
} // namespace LimeReport