Fixes for gcc compilation

Maybe even clang also.
This commit is contained in:
Simon Walton 2018-05-08 16:12:01 -07:00
parent bcc4136462
commit 8716e9591e
2 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@
using std::string;
template<typename T>
inline FBXToJSON& FBXToJSON::operator<<(QVector<T>& arrayProp) {
inline FBXToJSON& FBXToJSON::operator<<(const QVector<T>& arrayProp) {
*this << "[";
char comma = ' ';
for (auto& prop : arrayProp) {
@ -44,7 +44,7 @@ FBXToJSON& FBXToJSON::operator<<(const FBXNode& fbxNode) {
++_indentLevel;
int p = 0;
char* eol = "";
const char* eol = "";
for (auto& prop : fbxNode.properties) {
*this << eol << string(_indentLevel * 4, ' ') << "\"p" << p++ << "\": ";
switch (prop.userType()) {

View file

@ -24,7 +24,7 @@ public:
FBXToJSON& operator<<(const FBXNode& fbxNode);
private:
template<typename T> FBXToJSON& operator<<(QVector<T>& arrayProp);
template<typename T> FBXToJSON& operator<<(const QVector<T>& arrayProp);
static std::string stringEscape(const std::string& in);
int _indentLevel { 0 };
};