mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-16 14:33:15 +02:00
Fixes for gcc compilation
Maybe even clang also.
This commit is contained in:
parent
bcc4136462
commit
8716e9591e
2 changed files with 3 additions and 3 deletions
|
@ -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()) {
|
||||
|
|
|
@ -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 };
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue