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