fix compile and codecheck problems

Signed-off-by: Mupceet <laiguizhong@huawei.com>
This commit is contained in:
Mupceet 2022-07-22 13:08:09 +08:00
parent 3b87cfe093
commit 394857422c
2 changed files with 3 additions and 3 deletions

View File

@ -1228,11 +1228,11 @@ void AccessibilityConfig::Impl::OnAccessibleAbilityManagerShortkeyTargetChanged(
void AccessibilityConfig::Impl::InitVar()
{
if(!serviceProxy_){
if (!serviceProxy_) {
HILOG_ERROR("AAMS Service is not connected");
return;
}
highContrastText_ = serviceProxy_->GetHighContrastTextState();;
highContrastText_ = serviceProxy_->GetHighContrastTextState();
invertColor_ = serviceProxy_->GetInvertColorState();
animationOff_ = serviceProxy_->GetAnimationOffState();
audioMono_ = serviceProxy_->GetAudioMonoState();
@ -1247,7 +1247,6 @@ void AccessibilityConfig::Impl::InitVar()
audioBalance_ = serviceProxy_->GetAudioBalance();
shortkeyTarget_ = serviceProxy_->GetShortkeyTarget();
captionProperty_ = serviceProxy_->GetCaptionProperty();
}
} // namespace AccessibilityConfig
} // namespace OHOS

View File

@ -57,6 +57,7 @@ std::string ConvertWindowTypeToString(OHOS::Accessibility::AccessibilityWindowTy
std::string ConvertDaltonizationTypeToString(OHOS::AccessibilityConfig::DALTONIZATION_TYPE type);
void ConvertOperationToJS(napi_env env, napi_value result, const OHOS::Accessibility::AccessibleAction& operation);
void ConvertGridInfoToJS(napi_env env, napi_value nGrid, const OHOS::Accessibility::GridInfo& grid);
void ConvertRangeInfoToJS(napi_env env, napi_value nRangeInfo, const OHOS::Accessibility::RangeInfo& rangeInfo);
void ConvertGridItemToJS(napi_env env, napi_value nGridItem, const OHOS::Accessibility::GridItemInfo& gridItem);
void ConvertRectToJS(napi_env env, napi_value result, const OHOS::Accessibility::Rect& rect);
void ConvertAccessibleAbilityInfosToJS(napi_env env, napi_value& result,