mirror of
https://github.com/isledecomp/SIEdit.git
synced 2024-11-23 07:38:09 -05:00
app/lib: fixed c++98 compliance issues
This commit is contained in:
parent
7ef15f4e42
commit
dbdf9097a4
7 changed files with 15 additions and 6 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "vector3edit.h"
|
||||
|
||||
#include <float.h>
|
||||
#include <QHBoxLayout>
|
||||
#include <QLabel>
|
||||
|
||||
|
|
|
@ -7,7 +7,11 @@
|
|||
#define LIBWEAVER_PACK( __Declaration__ ) __pragma( pack(push, 1) ) __Declaration__ __pragma( pack(pop))
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define LIBWEAVER_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define LIBWEAVER_EXPORT
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32)
|
||||
#define LIBWEAVER_OS_WINDOWS
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#include "core.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
namespace si {
|
||||
|
||||
Core::Core()
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#include <vector>
|
||||
|
||||
#include "common.h"
|
||||
#include "types.h"
|
||||
|
||||
namespace si {
|
||||
|
||||
|
|
|
@ -74,11 +74,11 @@ bool Interleaf::ParseStream(Chunk *chunk)
|
|||
|
||||
Chunk *list = static_cast<Chunk*>(chunk->GetChildAt(1));
|
||||
if (list) {
|
||||
using ChunkMap = std::map<uint32_t, std::vector<bytearray> >;
|
||||
typedef std::map<uint32_t, Object::ChunkedData> ChunkMap;
|
||||
ChunkMap data;
|
||||
|
||||
for (Core *chunk : list->GetChildren()) {
|
||||
Chunk *mxch = static_cast<Chunk*>(chunk);
|
||||
for (Children::const_iterator it=list->GetChildren().begin(); it!=list->GetChildren().end(); it++) {
|
||||
Chunk *mxch = static_cast<Chunk*>(*it);
|
||||
if (mxch->id() == Chunk::TYPE_pad_) {
|
||||
// Ignore this chunk
|
||||
} else if (mxch->id() == Chunk::TYPE_MxCh) {
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace si {
|
|||
class Object : public Core
|
||||
{
|
||||
public:
|
||||
using ChunkedData = std::vector<bytearray>;
|
||||
typedef std::vector<bytearray> ChunkedData;
|
||||
|
||||
Object();
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#ifndef TYPES_H
|
||||
#define TYPES_H
|
||||
|
||||
#include <cstring>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
@ -24,7 +25,7 @@ namespace si {
|
|||
class bytearray : public std::vector<char>
|
||||
{
|
||||
public:
|
||||
bytearray() = default;
|
||||
bytearray(){}
|
||||
|
||||
template <typename T>
|
||||
T *cast() { return reinterpret_cast<T*>(data()); }
|
||||
|
@ -138,7 +139,7 @@ private:
|
|||
|
||||
};
|
||||
|
||||
using DataMap = std::map<std::string, Data>;
|
||||
typedef std::map<std::string, Data> DataMap;
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue