Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
56fa68ee
Commit
56fa68ee
authored
Dec 05, 2017
by
Ronan
Browse files
fix(AppDataContainer): use iterator in get app data, (at => poor performance)
parent
44de3832
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/object/app-data-container.cpp
src/object/app-data-container.cpp
+1
-1
No files found.
src/object/app-data-container.cpp
View file @
56fa68ee
...
@@ -66,7 +66,7 @@ const unordered_map<string, string> &AppDataContainer::getAppDataMap () const {
...
@@ -66,7 +66,7 @@ const unordered_map<string, string> &AppDataContainer::getAppDataMap () const {
const
string
&
AppDataContainer
::
getAppData
(
const
string
&
name
)
const
{
const
string
&
AppDataContainer
::
getAppData
(
const
string
&
name
)
const
{
L_D
();
L_D
();
auto
it
=
d
->
appData
->
find
(
name
);
auto
it
=
d
->
appData
->
find
(
name
);
return
it
==
d
->
appData
->
cend
()
?
Utils
::
getEmptyConstRefObject
<
string
>
()
:
d
->
appData
->
at
(
name
)
;
return
it
==
d
->
appData
->
cend
()
?
Utils
::
getEmptyConstRefObject
<
string
>
()
:
it
->
second
;
}
}
void
AppDataContainer
::
setAppData
(
const
string
&
name
,
const
string
&
appData
)
{
void
AppDataContainer
::
setAppData
(
const
string
&
name
,
const
string
&
appData
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment