Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
c0b13863
Commit
c0b13863
authored
Mar 11, 2009
by
hjk
Browse files
Fixes: use less static variables in patchedpluginloader.cpp
Details: confused designer plugins
parent
9a70ea18
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/extensionsystem/patchedpluginloader.cpp
View file @
c0b13863
...
...
@@ -114,8 +114,6 @@ public:
QObject
*
instance
();
static
QObjectList
staticInstances
();
bool
load
();
bool
unload
();
bool
isLoaded
()
const
;
...
...
@@ -831,9 +829,6 @@ QString PatchedPluginLoader::errorString() const
return
(
!
d
||
d
->
errorString
.
isEmpty
())
?
QLibrary
::
tr
(
"Unknown error"
)
:
d
->
errorString
;
}
typedef
QList
<
QtPluginInstanceFunction
>
StaticInstanceFunctionList
;
Q_GLOBAL_STATIC
(
StaticInstanceFunctionList
,
staticInstanceFunctionList
)
void
PatchedPluginLoader
::
setLoadHints
(
QLibrary
::
LoadHints
loadHints
)
{
if
(
!
d
)
{
...
...
@@ -853,24 +848,6 @@ QLibrary::LoadHints PatchedPluginLoader::loadHints() const
return
d
->
loadHints
;
}
void
qRegisterStaticPluginInstanceFunction
(
QtPluginInstanceFunction
function
)
{
staticInstanceFunctionList
()
->
append
(
function
);
}
QObjectList
PatchedPluginLoader
::
staticInstances
()
{
QObjectList
instances
;
StaticInstanceFunctionList
*
functions
=
staticInstanceFunctionList
();
if
(
functions
)
{
for
(
int
i
=
0
;
i
<
functions
->
count
();
++
i
)
instances
.
append
((
*
functions
)[
i
]());
}
return
instances
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment