Skip to content

Commit

Permalink
doc: remove unnecessary use of std::string.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosra committed Dec 31, 2022
1 parent 6c4c4d2 commit d39184f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doc/snippets/platforms-html5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,17 @@
DEALINGS IN THE SOFTWARE.
*/

#include <string>
#include <Corrade/Containers/String.h>
#include <emscripten/emscripten.h>

using namespace Corrade;

int main() {
{
/* [emasm-dollar] */
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdollar-in-identifier-extension"
std::string title;
Containers::String title;
EM_ASM_({document.getElementById('title').innerHTML =
UTF8ToString($0)}, title.data());
#pragma GCC diagnostic pop
Expand Down

0 comments on commit d39184f

Please sign in to comment.