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

Unified Diff: dbus/scoped_dbus_error.cc

Issue 592793004: Move inline som functions ScopedDBusError into a .cc file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a link-time issue of methods not being exported Created 6 years, 3 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 | « dbus/scoped_dbus_error.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/scoped_dbus_error.cc
diff --git a/dbus/scoped_dbus_error.cc b/dbus/scoped_dbus_error.cc
new file mode 100644
index 0000000000000000000000000000000000000000..fa049718ef049614772226221e1bdcded777ec21
--- /dev/null
+++ b/dbus/scoped_dbus_error.cc
@@ -0,0 +1,21 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "dbus/scoped_dbus_error.h"
+
+namespace dbus {
+
+ScopedDBusError::ScopedDBusError() {
+ dbus_error_init(&error_);
+}
+
+ScopedDBusError::~ScopedDBusError() {
+ dbus_error_free(&error_);
+}
+
+bool ScopedDBusError::is_set() const {
+ return dbus_error_is_set(&error_);
+}
+
+} // namespace dbus
« no previous file with comments | « dbus/scoped_dbus_error.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698