Skip to content

Commit 1cea18f

Browse files
author
Daniel Kroening
authored
Merge pull request #627 from NathanJPhillips/cleanup/minor
Minor cleanups
2 parents 7d5a610 + 1855bcd commit 1cea18f

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Local files generated by IDEs
2+
.vs/*
23
.vscode/*
4+
~AutoRecover.*
5+
*.sln
6+
*.vcxproj*
7+
scripts/__pycache__/*
8+
src/goto-analyzer/taint_driver_scripts/.idea/*
9+
/*.config
10+
/*.creator
11+
/*.creator.user
12+
/*.files
13+
/*.includes
314

415
# compilation files
516
*.lo

src/util/irep_hash.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ inline std::size_t basic_hash_finalize(
148148
return h1;
149149
}
150150

151+
// Boost uses the symbol hash_combine, if you're getting problems here then
152+
// you've probably included a Boost header after this one
151153
#define hash_combine(h1, h2) \
152154
basic_hash_combine<sizeof(std::size_t)*8>(h1, h2)
153155
#define hash_finalize(h1, len) \

src/util/json.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ class json_arrayt:public jsont
147147
jsont &push_back(const jsont &json)
148148
{
149149
array.push_back(json);
150-
return static_cast<jsont &>(array.back());
150+
return array.back();
151151
}
152152

153153
jsont &push_back()
154154
{
155155
array.push_back(jsont());
156-
return static_cast<jsont &>(array.back());
156+
return array.back();
157157
}
158158
};
159159

0 commit comments

Comments
 (0)