shill: resolve build warning in Error::ToDBusError
Error::ToDBusError was generating warnings at compile time, due
to some problems with DBus::Error::operator= and
DBus::RefPtrI<T>::operator=.
this patch eliminates the build warnings, by using DBus::Error::set,
instead of DBus::Error::operator=. (doing so also eliminates
unnecessary construction and destruction of a temporary
DBus::Error object.)
BUG=chromium-os:16721
TEST=build, observe that warning is gone. (and unit tests still pass.)
Change-Id: Id519878e6616b69cc1234ab16f20e1bc576f008d
Reviewed-on: http://gerrit.chromium.org/gerrit/3345
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: mukesh agrawal <quiche@chromium.org>
6 files changed