Signed-off-by: lovechinamo <wangdongqi2@huawei.com>

Changes to be committed:
This commit is contained in:
lovechinamo
2022-06-07 14:12:25 +08:00
parent e210b01115
commit 462cdcbf50
2 changed files with 67 additions and 8 deletions
+59
View File
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CMakeRunConfigurationManager" shouldGenerate="true" shouldDeleteObsolete="true">
<generated />
</component>
<component name="CMakeSettings">
<configurations>
<configuration PROFILE_NAME="Debug" CONFIG_NAME="Debug" />
</configurations>
</component>
<component name="ChangeListManager">
<list default="true" id="1dda0b8e-189e-4aea-b9f6-9abee1c0fbe4" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/interfaces/kits/napi/src/napi_pasteboard.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/interfaces/kits/napi/src/napi_pasteboard.cpp" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="ProjectId" id="2A0DtEnxYNyFdrlpHN0iBHLrfmS" />
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="cf.advertisement.text.overridden" value="true" />
<property name="cf.first.check.clang-format" value="false" />
<property name="node.js.detected.package.eslint" value="true" />
<property name="node.js.detected.package.tslint" value="true" />
<property name="node.js.path.for.package.eslint" value="project" />
<property name="node.js.path.for.package.tslint" value="project" />
<property name="node.js.selected.package.eslint" value="(autodetect)" />
<property name="node.js.selected.package.tslint" value="(autodetect)" />
</component>
<component name="SpellCheckerSettings" BundledDictionaries="0" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" Dictionaries="0" CorrectionsLimit="5" DefaultDictionary="application-level" UseSingleDictionary="true" />
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<created>1654138000526</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1654138000526</updated>
<workItem from="1654138002998" duration="7209000" />
</task>
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="2" />
</component>
</project>
+8 -8
View File
@@ -523,7 +523,7 @@ napi_value SystemPasteboardNapi::Clear(napi_env env, napi_callback_info info)
napi_value resource = nullptr;
napi_create_string_latin1(env, "Clear", NAPI_AUTO_LENGTH, &resource);
napi_status AsyncWork = napi_create_async_work(env,
napi_status asyncWork = napi_create_async_work(env,
nullptr,
resource,
[](napi_env env, void* data) {
@@ -551,7 +551,7 @@ napi_value SystemPasteboardNapi::Clear(napi_env env, napi_callback_info info)
},
(void*)asyncContext, &asyncContext->work);
napi_queue_async_work(env, asyncContext->work);
if (AsyncWork != napi_ok) {
if (asyncWork != napi_ok) {
delete asyncContext;
}
@@ -587,7 +587,7 @@ napi_value SystemPasteboardNapi::HasPasteData(napi_env env, napi_callback_info i
napi_value resource = nullptr;
napi_create_string_latin1(env, "HasPasteData", NAPI_AUTO_LENGTH, &resource);
napi_status AsyncWork = napi_create_async_work(env,
napi_status asyncWork = napi_create_async_work(env,
nullptr,
resource,
[](napi_env env, void* data) {
@@ -618,7 +618,7 @@ napi_value SystemPasteboardNapi::HasPasteData(napi_env env, napi_callback_info i
},
(void*)asyncContext, &asyncContext->work);
napi_queue_async_work(env, asyncContext->work);
if (AsyncWork != napi_ok) {
if (asyncWork != napi_ok) {
delete asyncContext;
}
@@ -654,7 +654,7 @@ napi_value SystemPasteboardNapi::GetPasteData(napi_env env, napi_callback_info i
napi_value resource = nullptr;
napi_create_string_latin1(env, "GetPasteData", NAPI_AUTO_LENGTH, &resource);
napi_status AsyncWork = napi_create_async_work(env,
napi_status asyncWork = napi_create_async_work(env,
nullptr,
resource,
[](napi_env env, void *data) { },
@@ -694,7 +694,7 @@ napi_value SystemPasteboardNapi::GetPasteData(napi_env env, napi_callback_info i
(void *)asyncContext,
&asyncContext->work);
napi_queue_async_work(env, asyncContext->work);
if (AsyncWork != napi_ok) {
if (asyncWork != napi_ok) {
delete asyncContext;
}
@@ -740,7 +740,7 @@ napi_value SystemPasteboardNapi::SetPasteData(napi_env env, napi_callback_info i
napi_value resource = nullptr;
napi_create_string_latin1(env, "SetPasteData", NAPI_AUTO_LENGTH, &resource);
napi_status AsyncWork = napi_create_async_work(env,
napi_status asyncWork = napi_create_async_work(env,
nullptr,
resource,
[](napi_env env, void* data) {
@@ -768,7 +768,7 @@ napi_value SystemPasteboardNapi::SetPasteData(napi_env env, napi_callback_info i
},
(void*)asyncContext, &asyncContext->work);
napi_queue_async_work(env, asyncContext->work);
if (AsyncWork != napi_ok) {
if (asyncWork != napi_ok) {
delete asyncContext;
}