~ubuntu-branches/ubuntu/precise/kde4libs/precise-updates

« back to all changes in this revision

Viewing changes to solid/solid/backends/wmi/wmiquery.cpp

  • Committer: Package Import Robot
  • Author(s): Felix Geyer, Scott Kitterman, Felix Geyer
  • Date: 2012-09-07 16:47:08 UTC
  • mfrom: (1.14.19) (264.1.1 precise-security)
  • Revision ID: package-import@ubuntu.com-20120907164708-ya6uihqramqby4q0
Tags: 4:4.8.5-0ubuntu0.1
[ Scott Kitterman ]
* New upstream bugfix release (LP: #1047417)
  - Drop patches cherrypicked from upstrea:
    Revert_disconnect_before_re-connecting.diff
    Revert_Always_rec-connect_if_forced.diff

[ Felix Geyer ]
* Install new kdoctools language customizations.
* Update libkdeui5 symbols file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
188
188
 
189
189
WmiQuery::Item::Item(IWbemClassObject *p) : m_p(p)
190
190
{
191
 
    m_p->AddRef();
 
191
    if(m_p != NULL)
 
192
        m_p->AddRef();
192
193
}
193
194
 
194
195
WmiQuery::Item::Item(const Item& other) : m_p(other.m_p)
195
196
{
196
 
    m_p->AddRef();
 
197
    if(m_p != NULL)
 
198
        m_p->AddRef();
197
199
}
198
200
 
199
201
WmiQuery::Item& WmiQuery::Item::operator=(const Item& other)
218
220
 
219
221
IWbemClassObject* WmiQuery::Item::data() const
220
222
{
221
 
    m_p->AddRef();
 
223
    if(m_p != NULL)
 
224
        m_p->AddRef();
222
225
    return m_p;
223
226
}
224
227