[Infer] Fix Infer errors/warnings (#1938)

* [Infer] Fix 11 Infer errors/warnings

* fix build error
This commit is contained in:
Hannah Troisi
2016-07-16 15:29:24 -07:00
committed by appleguy
parent abf8d5b9aa
commit 4baf9bdbfe
10 changed files with 54 additions and 24 deletions

View File

@@ -75,7 +75,9 @@
NSTextContainer *))block
{
std::lock_guard<std::mutex> l(_textKitMutex);
block(_layoutManager, _textStorage, _textContainer);
if (block) {
block(_layoutManager, _textStorage, _textContainer);
}
}
@end