Fixed Linux build.

This commit is contained in:
Бранимир Караџић 2019-04-29 20:52:39 -07:00
parent 4cd8e574e8
commit 22ca1ce1a2
2 changed files with 48 additions and 47 deletions

View File

@ -62,8 +62,7 @@ public:
{
bx::StringView result = m_token;
m_token = bx::strTrim(
bx::StringView(m_token.getTerm()+1
, bx::strFind(bx::StringView(m_token.getTerm()+1, m_str.getTerm() ), m_ch).getPtr() )
bx::StringView(m_token.getTerm()+1, bx::strFind(bx::StringView(m_token.getTerm()+1, m_str.getTerm() ), m_ch).getPtr() )
, " \t\n"
);
return result;
@ -96,7 +95,8 @@ bool openFileSelectionDialog(
bx::write(&writer, &err
, "--file-selection%s --title \"%.*s\" --filename \"%s\""
, FileSelectionDialogType::Save == _type ? " --save" : ""
, _title.getLength(), _title.getPtr()
, _title.getLength()
, _title.getPtr()
, _inOutFilePath.getCPtr()
);
@ -106,7 +106,8 @@ bool openFileSelectionDialog(
bx::write(&writer, &err
, " --file-filter \"%.*s\""
, line.getLength(), line.getPtr()
, line.getLength()
, line.getPtr()
);
}
@ -203,4 +204,4 @@ bool openFileSelectionDialog(
return false;
}
#endif !BX_PLATFORM_OSX
#endif // !BX_PLATFORM_OSX