projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor coverity issue fixes
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
controls
/
text-controls
/
common-text-utils.cpp
diff --git
a/dali-toolkit/internal/controls/text-controls/common-text-utils.cpp
b/dali-toolkit/internal/controls/text-controls/common-text-utils.cpp
index
c73a216
..
6ece809
100644
(file)
--- a/
dali-toolkit/internal/controls/text-controls/common-text-utils.cpp
+++ b/
dali-toolkit/internal/controls/text-controls/common-text-utils.cpp
@@
-316,7
+316,7
@@
Accessibility::Range TextControlAccessible::GetTextAtOffset(std::size_t offset,
break;
}
break;
}
- case Dali::Accessibility::TextBoundary::SENTENCE: // Not supported by default
+ case Dali::Accessibility::TextBoundary::SENTENCE:
// Not supported by default
case Dali::Accessibility::TextBoundary::PARAGRAPH: // Not supported by libunibreak library
default:
{
case Dali::Accessibility::TextBoundary::PARAGRAPH: // Not supported by libunibreak library
default:
{
@@
-482,7
+482,7
@@
bool EditableTextControlAccessible::DeleteText(std::size_t startPosition, std::s
return false;
}
return false;
}
- return SetTextContents(
text.erase(startPosition, endPosition - startPosition
));
+ return SetTextContents(
std::move(text.erase(startPosition, endPosition - startPosition)
));
}
bool EditableTextControlAccessible::InsertText(std::size_t startPosition, std::string newText)
}
bool EditableTextControlAccessible::InsertText(std::size_t startPosition, std::string newText)
@@
-494,7
+494,7
@@
bool EditableTextControlAccessible::InsertText(std::size_t startPosition, std::s
return false;
}
return false;
}
- return SetTextContents(
text.insert(startPosition, std::move(
newText)));
+ return SetTextContents(
std::move(text.insert(startPosition,
newText)));
}
bool EditableTextControlAccessible::SetTextContents(std::string newContents)
}
bool EditableTextControlAccessible::SetTextContents(std::string newContents)