Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
fix remaining oclint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wrmswindmill committed Aug 8, 2019
1 parent b02199e commit 7317800
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions ios/sdk/WeexSDK/Sources/Bridge/WXCoreBridge.mm
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ static void MergeBorderWidthValues(NSMutableDictionary* dict,
int IOSSide::CallNative(const char* pageId, const char *task, const char *callback)
{
// should not enter this function
assert(false);
assert(false); //!OCLint
}

static WeexByteArray *generator_bytes_array(const char *str, size_t len) {
Expand Down Expand Up @@ -396,7 +396,7 @@ static void MergeBorderWidthValues(NSMutableDictionary* dict,
void IOSSide::SetTimeout(const char* callbackID, const char* time)
{
// should not enter this function
assert(false);
assert(false); //!OCLint
}

void IOSSide::NativeLog(const char *args)
Expand Down Expand Up @@ -1038,7 +1038,7 @@ static void MergeBorderWidthValues(NSMutableDictionary* dict,
WXCoreSize WXCoreMeasureFunctionBridge::Measure(const char* page_id, long render_ptr, float width, MeasureMode widthMeasureMode, float height, MeasureMode heightMeasureMode)
{
// should not enter this function
assert(false);
assert(false); //!OCLint
}

void WXCoreMeasureFunctionBridge::LayoutBefore(const char* page_id, long render_ptr)
Expand Down
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Component/WXTransform.m
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ - (CATransform3D)nativeTransformWithoutRotateWithView:(UIView *)view
CATransform3D nativeTansform3D = CATransform3DIdentity;

// CGFLOAT_MAX is not INF on 32-bit device
if(_perspective && _perspective != CGFLOAT_MAX && !isinf(_perspective)) {
if(_perspective && _perspective != CGFLOAT_MAX && !isinf(_perspective)) { //!OCLint
nativeTansform3D.m34 = -1.0/_perspective;
}
if (!view || view.bounds.size.width <= 0 || view.bounds.size.height <= 0) {
Expand Down
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ - (void)_createCAAnimation:(WXAnimationInfo *)info
}
} else {
CATransform3D transform = layer.transform;
if (info.target->_transform.perspective && !isinf(info.target->_transform.perspective)) {
if (info.target->_transform.perspective && !isinf(info.target->_transform.perspective)) { //!OCLint
transform.m34 = -1.0/info.target->_transform.perspective*[UIScreen mainScreen].scale;
layer.transform = transform;
}
Expand Down
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Utility/WXUtility.m
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ + (UIFont *)fontWithSize:(CGFloat)size textWeight:(CGFloat)textWeight textStyle:
RegisteredFontFileNames = [[NSMutableDictionary alloc] init];
});

CGFloat fontSize = (isnan(size) || size == 0) ? 32 * scaleFactor : size;
CGFloat fontSize = (isnan(size) || size == 0) ? 32 * scaleFactor : size; //!OCLint
UIFont *font = nil;

WXThreadSafeMutableDictionary *fontFace = [[WXRuleManager sharedInstance] getRule:@"fontFace"];
Expand Down
4 changes: 2 additions & 2 deletions weex_core/Source/third_party/json11/json11.cc
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ void Json::dump(string &out) const {
*/

template <Json::Type tag, typename T>
class Value : public JsonValue {
class Value : public JsonValue {//!OCLint
protected:

// Constructors
Expand Down Expand Up @@ -430,7 +430,7 @@ struct JsonParser final {
if (failed) return;
consume_whitespace();
}
while(comment_found);
while(comment_found); //!OCLint
}
}

Expand Down

0 comments on commit 7317800

Please sign in to comment.