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

Side by Side Diff: src/error.cpp

Issue 1648006: Apply patch from ebuild file to fix toString (Closed)
Patch Set: Created 10 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 unified diff | Download patch
« no previous file with comments | « include/dbus-c++/eventloop-integration.h ('k') | src/eventloop-integration.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * 2 *
3 * D-Bus++ - C++ bindings for D-Bus 3 * D-Bus++ - C++ bindings for D-Bus
4 * 4 *
5 * Copyright (C) 2005-2007 Paolo Durante <shackan@gmail.com> 5 * Copyright (C) 2005-2007 Paolo Durante <shackan@gmail.com>
6 * 6 *
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public 9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 return _int->error.message; 72 return _int->error.message;
73 } 73 }
74 74
75 bool Error::is_set() const 75 bool Error::is_set() const
76 { 76 {
77 return *(_int); 77 return *(_int);
78 } 78 }
79 79
80 void Error::set(const char *name, const char *message) 80 void Error::set(const char *name, const char *message)
81 { 81 {
82 » dbus_set_error_const(&(_int->error), name, message); 82 » dbus_set_error(&(_int->error), name, message);
83 } 83 }
84 84
85 const char *Error::what() const throw() 85 const char *Error::what() const throw()
86 { 86 {
87 return _int->error.message; 87 return _int->error.message;
88 } 88 }
89
OLDNEW
« no previous file with comments | « include/dbus-c++/eventloop-integration.h ('k') | src/eventloop-integration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698