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

Commit 7317800

Browse files
committed
fix remaining oclint warning
1 parent b02199e commit 7317800

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

ios/sdk/WeexSDK/Sources/Bridge/WXCoreBridge.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static void MergeBorderWidthValues(NSMutableDictionary* dict,
164164
int IOSSide::CallNative(const char* pageId, const char *task, const char *callback)
165165
{
166166
// should not enter this function
167-
assert(false);
167+
assert(false); //!OCLint
168168
}
169169

170170
static WeexByteArray *generator_bytes_array(const char *str, size_t len) {
@@ -396,7 +396,7 @@ static void MergeBorderWidthValues(NSMutableDictionary* dict,
396396
void IOSSide::SetTimeout(const char* callbackID, const char* time)
397397
{
398398
// should not enter this function
399-
assert(false);
399+
assert(false); //!OCLint
400400
}
401401

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

10441044
void WXCoreMeasureFunctionBridge::LayoutBefore(const char* page_id, long render_ptr)

ios/sdk/WeexSDK/Sources/Component/WXTransform.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ - (CATransform3D)nativeTransformWithoutRotateWithView:(UIView *)view
177177
CATransform3D nativeTansform3D = CATransform3DIdentity;
178178

179179
// CGFLOAT_MAX is not INF on 32-bit device
180-
if(_perspective && _perspective != CGFLOAT_MAX && !isinf(_perspective)) {
180+
if(_perspective && _perspective != CGFLOAT_MAX && !isinf(_perspective)) { //!OCLint
181181
nativeTansform3D.m34 = -1.0/_perspective;
182182
}
183183
if (!view || view.bounds.size.width <= 0 || view.bounds.size.height <= 0) {

ios/sdk/WeexSDK/Sources/Module/WXAnimationModule.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ - (void)_createCAAnimation:(WXAnimationInfo *)info
430430
}
431431
} else {
432432
CATransform3D transform = layer.transform;
433-
if (info.target->_transform.perspective && !isinf(info.target->_transform.perspective)) {
433+
if (info.target->_transform.perspective && !isinf(info.target->_transform.perspective)) { //!OCLint
434434
transform.m34 = -1.0/info.target->_transform.perspective*[UIScreen mainScreen].scale;
435435
layer.transform = transform;
436436
}

ios/sdk/WeexSDK/Sources/Utility/WXUtility.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ + (UIFont *)fontWithSize:(CGFloat)size textWeight:(CGFloat)textWeight textStyle:
518518
RegisteredFontFileNames = [[NSMutableDictionary alloc] init];
519519
});
520520

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

524524
WXThreadSafeMutableDictionary *fontFace = [[WXRuleManager sharedInstance] getRule:@"fontFace"];

weex_core/Source/third_party/json11/json11.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ void Json::dump(string &out) const {
146146
*/
147147

148148
template <Json::Type tag, typename T>
149-
class Value : public JsonValue {
149+
class Value : public JsonValue {//!OCLint
150150
protected:
151151

152152
// Constructors
@@ -430,7 +430,7 @@ struct JsonParser final {
430430
if (failed) return;
431431
consume_whitespace();
432432
}
433-
while(comment_found);
433+
while(comment_found); //!OCLint
434434
}
435435
}
436436

0 commit comments

Comments
 (0)