mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-24 21:07:46 +00:00
Use more pragma once
This commit is contained in:
parent
219bc4c582
commit
2e033e1ee1
8 changed files with 8 additions and 32 deletions
|
@ -1,8 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: 2014 Dax89
|
// SPDX-FileCopyrightText: 2014 Dax89
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
#ifndef QHEXBUFFER_H
|
#pragma once
|
||||||
#define QHEXBUFFER_H
|
|
||||||
|
|
||||||
#include <QIODevice>
|
#include <QIODevice>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
@ -32,5 +31,3 @@ public:
|
||||||
virtual qint64 indexOf(const QByteArray &ba, qint64 from) = 0;
|
virtual qint64 indexOf(const QByteArray &ba, qint64 from) = 0;
|
||||||
virtual qint64 lastIndexOf(const QByteArray &ba, qint64 from) = 0;
|
virtual qint64 lastIndexOf(const QByteArray &ba, qint64 from) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // QHEXBUFFER_H
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: 2014 Dax89
|
// SPDX-FileCopyrightText: 2014 Dax89
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
#ifndef QMEMORYBUFFER_H
|
#pragma once
|
||||||
#define QMEMORYBUFFER_H
|
|
||||||
|
|
||||||
#include "qhexbuffer.h"
|
#include "qhexbuffer.h"
|
||||||
|
|
||||||
|
@ -26,5 +25,3 @@ public:
|
||||||
private:
|
private:
|
||||||
QByteArray m_buffer;
|
QByteArray m_buffer;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // QMEMORYBUFFER_H
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: 2014 Dax89
|
// SPDX-FileCopyrightText: 2014 Dax89
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
#ifndef QMEMORYREFBUFFER_H
|
#pragma once
|
||||||
#define QMEMORYREFBUFFER_H
|
|
||||||
|
|
||||||
#include "qbuffer.h"
|
#include "qbuffer.h"
|
||||||
#include "qhexbuffer.h"
|
#include "qhexbuffer.h"
|
||||||
|
@ -26,5 +25,3 @@ public:
|
||||||
private:
|
private:
|
||||||
QBuffer *m_buffer;
|
QBuffer *m_buffer;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // QMEMORYREFBUFFER_H
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: 2014 Dax89
|
// SPDX-FileCopyrightText: 2014 Dax89
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
#ifndef QHEXCURSOR_H
|
#pragma once
|
||||||
#define QHEXCURSOR_H
|
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
|
||||||
|
@ -82,5 +81,3 @@ private:
|
||||||
quint8 m_lineWidth;
|
quint8 m_lineWidth;
|
||||||
QHexPosition m_position, m_selection;
|
QHexPosition m_position, m_selection;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // QHEXCURSOR_H
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: 2014 Dax89
|
// SPDX-FileCopyrightText: 2014 Dax89
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
#ifndef QHEXDOCUMENT_H
|
#pragma once
|
||||||
#define QHEXDOCUMENT_H
|
|
||||||
|
|
||||||
#include "buffer/qhexbuffer.h"
|
#include "buffer/qhexbuffer.h"
|
||||||
#include "qhexcursor.h"
|
#include "qhexcursor.h"
|
||||||
|
@ -131,5 +130,3 @@ QHexDocument *QHexDocument::fromMemory(const QByteArray &ba, QObject *parent)
|
||||||
hexbuffer->read(ba);
|
hexbuffer->read(ba);
|
||||||
return new QHexDocument(hexbuffer, parent);
|
return new QHexDocument(hexbuffer, parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // QHEXEDITDATA_H
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: 2014 Dax89
|
// SPDX-FileCopyrightText: 2014 Dax89
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
#ifndef QHEXMETADATA_H
|
#pragma once
|
||||||
#define QHEXMETADATA_H
|
|
||||||
|
|
||||||
#include <QColor>
|
#include <QColor>
|
||||||
#include <QHash>
|
#include <QHash>
|
||||||
|
@ -66,5 +65,3 @@ private:
|
||||||
QHash<quint64, QHexLineMetadata> m_metadata;
|
QHash<quint64, QHexLineMetadata> m_metadata;
|
||||||
QVector<QHexMetadataAbsoluteItem> m_absoluteMetadata;
|
QVector<QHexMetadataAbsoluteItem> m_absoluteMetadata;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // QHEXMETADATA_H
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: 2014 Dax89
|
// SPDX-FileCopyrightText: 2014 Dax89
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
#ifndef QHEXRENDERER_H
|
#pragma once
|
||||||
#define QHEXRENDERER_H
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Nibble encoding:
|
* Nibble encoding:
|
||||||
|
@ -78,5 +77,3 @@ private:
|
||||||
int m_selectedarea;
|
int m_selectedarea;
|
||||||
bool m_cursorenabled;
|
bool m_cursorenabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // QHEXRENDERER_H
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: 2014 Dax89
|
// SPDX-FileCopyrightText: 2014 Dax89
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
#ifndef QHEXVIEW_H
|
#pragma once
|
||||||
#define QHEXVIEW_H
|
|
||||||
|
|
||||||
#include "document/qhexdocument.h"
|
#include "document/qhexdocument.h"
|
||||||
#include "document/qhexrenderer.h"
|
#include "document/qhexrenderer.h"
|
||||||
|
@ -61,5 +60,3 @@ private:
|
||||||
QTimer *m_blinktimer;
|
QTimer *m_blinktimer;
|
||||||
bool m_readonly;
|
bool m_readonly;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // QHEXVIEW_H
|
|
Loading…
Add table
Reference in a new issue