提交 82306ceb 编写于 作者: W wuyongning

update En file

Signed-off-by: Nwuyongning <wuyongning@huawei.com>
上级 cef08b25
......@@ -165,7 +165,7 @@ Use the following APIs to delete a **Preferences** instance or data file.
Subscribe to data changes and invoke the callback:
``` C++
std::shared_ptr<PreferencesObserver> counter =
std::shared_ptr<PreferencesObserver>(new PreferencesObserverCounter());
std::make_shared<PreferencesObserverCounter>();
pref->RegisterObserver(counter); // Register a callback to return data changes.
pref->PutString(PreferencesTest::KEY_TEST_STRING_ELEMENT, "test");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册