Skip to content

Commit 89ec223

Browse files
committed
Merge remote-tracking branch 'origin/master' into bektchiev/feat-expose-internal-classes
2 parents fe4d1f5 + a8b3995 commit 89ec223

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/Binary/binarySerializer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ void binary::BinarySerializer::serializeModule(clang::Module* module, binary::Mo
272272
llvm::ErrorOr<bool> isStatic = isStaticFramework(module);
273273
assert(isStatic.getError().value() == 0);
274274

275-
bool isDynamic = isStatic.getError().value() == 0 && !isStatic.get()
275+
bool isDynamic = isStatic.getError().value() == 0 && !isStatic.get();
276276
if (isDynamic) {
277277
flags |= 1;
278278
}

src/TypeScript/DocSetManager.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,22 @@
1010
namespace {
1111
using namespace std;
1212

13+
14+
bool isntspace(char ch) {
15+
return !std::isspace(ch);
16+
}
17+
1318
// trim from start
1419
std::string& ltrim(std::string& s)
1520
{
16-
s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<int, int>(std::isspace))));
21+
s.erase(s.begin(), std::find_if(s.begin(), s.end(), isntspace));
1722
return s;
1823
}
1924

2025
// trim from end
2126
std::string& rtrim(std::string& s)
2227
{
23-
s.erase(std::find_if(s.rbegin(), s.rend(), std::not1(std::ptr_fun<int, int>(std::isspace))).base(), s.end());
28+
s.erase(std::find_if(s.rbegin(), s.rend(), isntspace).base(), s.end());
2429
return s;
2530
}
2631

@@ -226,4 +231,4 @@ xmlDocPtr DocSetManager::getXmlDocFileFor(std::string name, Meta::MetaType type,
226231
}
227232
return nullptr;
228233
}
229-
}
234+
}

0 commit comments

Comments
 (0)