<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kconfig.git/autotests/kconfig_compiler/test8c.h.ref, branch v5.40.0-rc1</title>
<subtitle>hurd kconfig.git</subtitle>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/kconfig.git/'/>
<entry>
<title>Generate an instance with KSharedConfig::Ptr for singleton and arg</title>
<updated>2017-01-06T08:52:45+00:00</updated>
<author>
<name>Martin Gräßlin</name>
<email>mgraesslin@kde.org</email>
</author>
<published>2016-11-16T13:59:28+00:00</published>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/kconfig.git/commit/?id=e0db2422362260a2fea3a8e1de4c64011d2f183d'/>
<id>e0db2422362260a2fea3a8e1de4c64011d2f183d</id>
<content type='text'>
Summary:
In case a kcfg with arg="true" was used and singleton the static
instance method only accepted a QString config name. This made it
impossible to combine a singleton config with an already existing and
open KSharedConfig::Ptr.

With this change an overloaded instance method is added which takes a
KSharedConfig::Ptr as argument. The private ctor, though, only takes a
KSharedConfig::Ptr and the instance method taking a QString argument
uses KSharedConfig::openConfig on the config file name.

The change is source-incompatible in the following situation:
* kcfgfile arg="true"
* Singleton = true
* Inherits is specified

In this situation the previous revision created an instance method with
a QString argument and passed that to the parent constructor. This is
not in accordance with the documentation. Any user of this behavior was
relying on a bug. With this change now the call to the parent
constructor carries a KSharedConfigPtr.

Test Plan:
kconfigcompiler tests still pass and a config with singleton
and arg="true" generates the code as I need it

Reviewers: #frameworks, dfaure, mdawson

Differential Revision: https://phabricator.kde.org/D3690
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary:
In case a kcfg with arg="true" was used and singleton the static
instance method only accepted a QString config name. This made it
impossible to combine a singleton config with an already existing and
open KSharedConfig::Ptr.

With this change an overloaded instance method is added which takes a
KSharedConfig::Ptr as argument. The private ctor, though, only takes a
KSharedConfig::Ptr and the instance method taking a QString argument
uses KSharedConfig::openConfig on the config file name.

The change is source-incompatible in the following situation:
* kcfgfile arg="true"
* Singleton = true
* Inherits is specified

In this situation the previous revision created an instance method with
a QString argument and passed that to the parent constructor. This is
not in accordance with the documentation. Any user of this behavior was
relying on a bug. With this change now the call to the parent
constructor carries a KSharedConfigPtr.

Test Plan:
kconfigcompiler tests still pass and a config with singleton
and arg="true" generates the code as I need it

Reviewers: #frameworks, dfaure, mdawson

Differential Revision: https://phabricator.kde.org/D3690
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Generate an instance with KSharedConfig::Ptr for singleton and arg"</title>
<updated>2016-12-07T08:29:38+00:00</updated>
<author>
<name>David Faure</name>
<email>faure@kde.org</email>
</author>
<published>2016-12-07T08:29:31+00:00</published>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/kconfig.git/commit/?id=4f9d7dde3a06da26d93e8f7ec98a283111a2d8c9'/>
<id>4f9d7dde3a06da26d93e8f7ec98a283111a2d8c9</id>
<content type='text'>
This reverts commit cd4e6504dfbdface00037625f0cedda511e6d839.

As suggested by Martin on release-team@kde.org, given that it breaks SC.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit cd4e6504dfbdface00037625f0cedda511e6d839.

As suggested by Martin on release-team@kde.org, given that it breaks SC.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "[autotest] Fix stupidity"</title>
<updated>2016-12-07T08:29:27+00:00</updated>
<author>
<name>David Faure</name>
<email>faure@kde.org</email>
</author>
<published>2016-12-07T08:29:27+00:00</published>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/kconfig.git/commit/?id=ebcaf997ca4e7cf687604ccb081d577f87b08008'/>
<id>ebcaf997ca4e7cf687604ccb081d577f87b08008</id>
<content type='text'>
This reverts commit 71f16741a0288d8587876dcc7dbb33ba8f00546a.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 71f16741a0288d8587876dcc7dbb33ba8f00546a.
</pre>
</div>
</content>
</entry>
<entry>
<title>[autotest] Fix stupidity</title>
<updated>2016-12-02T18:45:17+00:00</updated>
<author>
<name>Martin Gräßlin</name>
<email>mgraesslin@kde.org</email>
</author>
<published>2016-12-02T18:45:17+00:00</published>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/kconfig.git/commit/?id=71f16741a0288d8587876dcc7dbb33ba8f00546a'/>
<id>71f16741a0288d8587876dcc7dbb33ba8f00546a</id>
<content type='text'>
Sorry.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sorry.
</pre>
</div>
</content>
</entry>
<entry>
<title>Generate an instance with KSharedConfig::Ptr for singleton and arg</title>
<updated>2016-12-02T18:04:13+00:00</updated>
<author>
<name>Martin Gräßlin</name>
<email>mgraesslin@kde.org</email>
</author>
<published>2016-11-16T13:59:28+00:00</published>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/kconfig.git/commit/?id=cd4e6504dfbdface00037625f0cedda511e6d839'/>
<id>cd4e6504dfbdface00037625f0cedda511e6d839</id>
<content type='text'>
Summary:
In case a kcfg with arg="true" was used and singleton the static
instance method only accepted a QString config name. This made it
impossible to combine a singleton config with an already existing and
open KSharedConfig::Ptr.

With this change an overloaded instance method is added which takes a
KSharedConfig::Ptr as argument. The private ctor, though, only takes a
KSharedConfig::Ptr and the instance method taking a QString argument
uses KSharedConfig::openConfig on the config file name.

This provides full API compatibility and at the same time allows to use
KSharedConfig in addition to the arg name based variant.

Test Plan:
kconfigcompiler tests still pass and a config with singleton
and arg="true" generates the code as I need it

Reviewers: #frameworks

Differential Revision: https://phabricator.kde.org/D3386
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary:
In case a kcfg with arg="true" was used and singleton the static
instance method only accepted a QString config name. This made it
impossible to combine a singleton config with an already existing and
open KSharedConfig::Ptr.

With this change an overloaded instance method is added which takes a
KSharedConfig::Ptr as argument. The private ctor, though, only takes a
KSharedConfig::Ptr and the instance method taking a QString argument
uses KSharedConfig::openConfig on the config file name.

This provides full API compatibility and at the same time allows to use
KSharedConfig in addition to the arg name based variant.

Test Plan:
kconfigcompiler tests still pass and a config with singleton
and arg="true" generates the code as I need it

Reviewers: #frameworks

Differential Revision: https://phabricator.kde.org/D3386
</pre>
</div>
</content>
</entry>
</feed>
