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

Unified Diff: Source/modules/webmidi/MIDIPort.cpp

Issue 14373008: Web MIDI: clean up on MIDIPort and MIDIErrorCallback (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: (rebase) Created 7 years, 8 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 | « Source/modules/webmidi/MIDIErrorCallback.cpp ('k') | Source/modules/webmidi/MIDIPort.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webmidi/MIDIPort.cpp
diff --git a/Source/modules/webmidi/MIDIPort.cpp b/Source/modules/webmidi/MIDIPort.cpp
index 9ffa57a6ee304e71d033344806f49e0efdc45a57..83e5800179162fd4f781ec72734d06e65b025d4a 100644
--- a/Source/modules/webmidi/MIDIPort.cpp
+++ b/Source/modules/webmidi/MIDIPort.cpp
@@ -29,7 +29,6 @@
*/
#include "config.h"
-
#include "modules/webmidi/MIDIPort.h"
namespace WebCore {
@@ -61,13 +60,13 @@ String MIDIPort::type() const
{
switch (m_type) {
case MIDIPortTypeInput:
- return "input";
+ return ASCIILiteral("input");
case MIDIPortTypeOutput:
- return "output";
+ return ASCIILiteral("output");
default:
ASSERT_NOT_REACHED();
}
- return "";
+ return emptyString();
}
} // namespace WebCore
« no previous file with comments | « Source/modules/webmidi/MIDIErrorCallback.cpp ('k') | Source/modules/webmidi/MIDIPort.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698