Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(492)

Unified Diff: lib/ErrorSupport_cpp.template

Issue 2723583004: Add const char* overloads to ErrorSupport (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/ErrorSupport_h.template » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/ErrorSupport_cpp.template
diff --git a/lib/ErrorSupport_cpp.template b/lib/ErrorSupport_cpp.template
index 2108262a12b623ca01cf3fa84bdd0598cf76f8ac..7b858b8dc48f3746f233896d01a89379eaf9507c 100644
--- a/lib/ErrorSupport_cpp.template
+++ b/lib/ErrorSupport_cpp.template
@@ -11,6 +11,11 @@ namespace {{namespace}} {
ErrorSupport::ErrorSupport() { }
ErrorSupport::~ErrorSupport() { }
+void ErrorSupport::setName(const char* name)
+{
+ setName(String(name));
+}
+
void ErrorSupport::setName(const String& name)
{
DCHECK(m_path.size());
@@ -27,6 +32,11 @@ void ErrorSupport::pop()
m_path.pop_back();
}
+void ErrorSupport::addError(const char* error)
+{
+ addError(String(error));
+}
+
void ErrorSupport::addError(const String& error)
{
StringBuilder builder;
« no previous file with comments | « no previous file | lib/ErrorSupport_h.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698