Skip to content

Commit

Permalink
use c++11, use unique_ptr in GameSave::SerializeOPS
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Dec 27, 2017
1 parent 23c68b1 commit 887d606
Show file tree
Hide file tree
Showing 6 changed files with 151 additions and 152 deletions.
5 changes: 1 addition & 4 deletions SConscript
Expand Up @@ -396,10 +396,7 @@ elif not GetOption('help'):
env = conf.Finish()

if not msvc:
if platform == "Windows":
env.Append(CXXFLAGS=['-std=gnu++98'])
else:
env.Append(CXXFLAGS=['-std=c++98'])
env.Append(CXXFLAGS=['-std=c++11'])
env.Append(CXXFLAGS=['-Wno-invalid-offsetof'])
if platform == "Linux":
env.Append(CXXFLAGS=['-Wno-unused-result'])
Expand Down
3 changes: 2 additions & 1 deletion src/bson/BSON.cpp
Expand Up @@ -664,7 +664,8 @@ int bson_finish( bson *b ) {
}

void bson_destroy( bson *b ) {
bson_free( b->data );
if (b->data)
bson_free( b->data );
b->err = 0;
b->data = 0;
b->cur = 0;
Expand Down

0 comments on commit 887d606

Please sign in to comment.