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

Commit b02199e

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

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

ios/sdk/WeexSDK/Sources/Component/WXTextComponent.mm

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -246,17 +246,17 @@ - (void)dealloc
246246

247247
- (void)fillCSSStyles:(NSDictionary *)styles
248248
{
249-
WX_STYLE_FILL_TEXT(fontFamily, fontFamily, NSString, YES)
250-
WX_STYLE_FILL_TEXT_PIXEL(fontSize, fontSize, YES)
251-
WX_STYLE_FILL_TEXT(fontWeight, fontWeight, WXTextWeight, YES)
252-
WX_STYLE_FILL_TEXT(fontStyle, fontStyle, WXTextStyle, YES)
253-
WX_STYLE_FILL_TEXT(lines, lines, NSUInteger, YES)
254-
WX_STYLE_FILL_TEXT(textAlign, textAlign, NSTextAlignment, NO)
255-
WX_STYLE_FILL_TEXT(textDecoration, textDecoration, WXTextDecoration, YES)
256-
WX_STYLE_FILL_TEXT(textOverflow, textOverflow, NSString, NO)
257-
WX_STYLE_FILL_TEXT_PIXEL(lineHeight, lineHeight, YES)
258-
WX_STYLE_FILL_TEXT_PIXEL(letterSpacing, letterSpacing, YES)
259-
WX_STYLE_FILL_TEXT(wordWrap, wordWrap, NSString, YES);
249+
WX_STYLE_FILL_TEXT(fontFamily, fontFamily, NSString, YES) //!OCLint
250+
WX_STYLE_FILL_TEXT_PIXEL(fontSize, fontSize, YES) //!OCLint
251+
WX_STYLE_FILL_TEXT(fontWeight, fontWeight, WXTextWeight, YES) //!OCLint
252+
WX_STYLE_FILL_TEXT(fontStyle, fontStyle, WXTextStyle, YES) //!OCLint
253+
WX_STYLE_FILL_TEXT(lines, lines, NSUInteger, YES) //!OCLint
254+
WX_STYLE_FILL_TEXT(textAlign, textAlign, NSTextAlignment, NO) //!OCLint
255+
WX_STYLE_FILL_TEXT(textDecoration, textDecoration, WXTextDecoration, YES) //!OCLint
256+
WX_STYLE_FILL_TEXT(textOverflow, textOverflow, NSString, NO) //!OCLint
257+
WX_STYLE_FILL_TEXT_PIXEL(lineHeight, lineHeight, YES) //!OCLint
258+
WX_STYLE_FILL_TEXT_PIXEL(letterSpacing, letterSpacing, YES) //!OCLint
259+
WX_STYLE_FILL_TEXT(wordWrap, wordWrap, NSString, YES); //!OCLint
260260

261261
UIColor* color = nil;
262262
id value = styles[@"color"];

ios/sdk/WeexSDK/Sources/Display/UIBezierPath+Weex.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ + (instancetype)wx_bezierPathWithRoundedRect:(CGRect)rect
3333
bottomRight:(CGFloat)bottomRightRadius
3434
{
3535
UIBezierPath *path = [UIBezierPath bezierPath];
36-
if(isnan(topLeftRadius) || isnan(topRightRadius) || isnan(bottomLeftRadius) || isnan(bottomRightRadius)) {
36+
if(isnan(topLeftRadius) || isnan(topRightRadius) || isnan(bottomLeftRadius) || isnan(bottomRightRadius)) { //!OCLint
3737
return path;
3838
}
39-
if (![WXUtility isValidPoint:rect.origin] || isnan(rect.size.height) || isnan(rect.size.width)) {
39+
if (![WXUtility isValidPoint:rect.origin] || isnan(rect.size.height) || isnan(rect.size.width)) { //!OCLint
4040
return path;
4141
}
4242
CGPoint topLeftPoint = CGPointMake(rect.origin.x + topLeftRadius, rect.origin.y);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ + (BOOL)isBlankString:(NSString *)string {
391391

392392
+ (BOOL)isValidPoint:(CGPoint)point
393393
{
394-
return !(isnan(point.x)) && !(isnan(point.y));
394+
return !(isnan(point.x)) && !(isnan(point.y)); //!OCLint
395395
}
396396

397397
+ (NSError *)errorWithCode:(NSInteger)code message:(NSString *)message

weex_core/Source/core/render/manager/render_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ void RenderManager::CallMetaModule(const char *page_id, const char *method, cons
454454
else if (key == "deviceWidth") {
455455
setPageArgument(page_id, "devicewidth", value);
456456
}
457-
else if (key == "deviceHeight") {
457+
else if (key == "deviceHeight") { //!OCLint
458458
// unsupported now
459459
}
460460
else if (key == "reserveCssStyles") {

weex_core/Source/wson/wson_parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void wson_parser::toJSONtring(std::string &builder){
151151

152152
std::string wson_parser::nextStringUTF8(uint8_t type) {
153153
std::string str;
154-
switch (type) {
154+
switch (type) {//!OCLint
155155
case WSON_UINT8_STRING_TYPE: {
156156
int size = wson_next_uint(wsonBuffer);
157157
uint8_t *utf8 = wson_next_bts(wsonBuffer, size);

0 commit comments

Comments
 (0)