Mailinglist Archive: zypp-commit (223 mails)

< Previous Next >
[zypp-commit] r10664 - /trunk/libzypp/zypp/Service.cc
  • From: jkupec@xxxxxxxxxxxxxxxx
  • Date: Fri, 25 Jul 2008 16:15:02 -0000
  • Message-id: <20080725161502.B618356FE0@xxxxxxxxxxxxxxxx>
Author: jkupec
Date: Fri Jul 25 18:15:02 2008
New Revision: 10664

URL: http://svn.opensuse.org/viewcvs/zypp?rev=10664&view=rev
Log:
- use alias if name is empty

Modified:
trunk/libzypp/zypp/Service.cc

Modified: trunk/libzypp/zypp/Service.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/Service.cc?rev=10664&r1=10663&r2=10664&view=diff
==============================================================================
--- trunk/libzypp/zypp/Service.cc (original)
+++ trunk/libzypp/zypp/Service.cc Fri Jul 25 18:15:02 2008
@@ -71,7 +71,8 @@
string Service::alias() const { return _pimpl->alias; }
void Service::setAlias( const std::string & alias ) { _pimpl->alias = alias;
}

- string Service::name() const { return _pimpl->name; }
+ string Service::name() const
+ { if (_pimpl->name.empty()) return _pimpl->alias; return _pimpl->name; }
void Service::setName( const std::string& name ) { _pimpl->name = name; }

Url Service::url() const { return _pimpl->url; }

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages