Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
flatpak-qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marco Bubke
flatpak-qt-creator
Commits
158fe472
Commit
158fe472
authored
15 years ago
by
ck
Browse files
Options
Downloads
Patches
Plain Diff
Maemo: Missed some const_casts the last time.
parent
50f5f91b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/qt4projectmanager/qt-maemo/maemotoolchain.cpp
+7
-7
7 additions, 7 deletions
src/plugins/qt4projectmanager/qt-maemo/maemotoolchain.cpp
src/plugins/qt4projectmanager/qt-maemo/maemotoolchain.h
+11
-11
11 additions, 11 deletions
src/plugins/qt4projectmanager/qt-maemo/maemotoolchain.h
with
18 additions
and
18 deletions
src/plugins/qt4projectmanager/qt-maemo/maemotoolchain.cpp
+
7
−
7
View file @
158fe472
...
...
@@ -97,7 +97,7 @@ bool MaemoToolChain::equals(ToolChain *other) const
QString
MaemoToolChain
::
maddeRoot
()
const
{
if
(
!
m_maddeInitialized
)
(
const_cast
<
MaemoToolChain
*>
(
this
))
->
setMaddeRoot
();
setMaddeRoot
();
return
m_maddeRoot
;
}
...
...
@@ -109,25 +109,25 @@ QString MaemoToolChain::targetRoot() const
QString
MaemoToolChain
::
sysrootRoot
()
const
{
if
(
!
m_sysrootInitialized
)
(
const_cast
<
MaemoToolChain
*>
(
this
))
->
setSysrootAndToolchain
();
setSysrootAndToolchain
();
return
m_sysrootRoot
;
}
QString
MaemoToolChain
::
simulatorRoot
()
const
{
if
(
!
m_simulatorInitialized
)
(
const_cast
<
MaemoToolChain
*>
(
this
))
->
setSimulatorRoot
();
setSimulatorRoot
();
return
m_simulatorRoot
;
}
QString
MaemoToolChain
::
toolchainRoot
()
const
{
if
(
!
m_toolchainInitialized
)
(
const_cast
<
MaemoToolChain
*>
(
this
))
->
setSysrootAndToolchain
();
setSysrootAndToolchain
();
return
m_toolchainRoot
;
}
void
MaemoToolChain
::
setMaddeRoot
()
void
MaemoToolChain
::
setMaddeRoot
()
const
{
QDir
dir
(
targetRoot
());
dir
.
cdUp
();
dir
.
cdUp
();
...
...
@@ -136,7 +136,7 @@ void MaemoToolChain::setMaddeRoot()
m_maddeRoot
=
dir
.
absolutePath
();
}
void
MaemoToolChain
::
setSimulatorRoot
()
void
MaemoToolChain
::
setSimulatorRoot
()
const
{
QString
target
=
QDir
::
cleanPath
(
targetRoot
());
target
=
target
.
mid
(
target
.
lastIndexOf
(
QLatin1Char
(
'/'
))
+
1
);
...
...
@@ -171,7 +171,7 @@ void MaemoToolChain::setSimulatorRoot()
m_simulatorInitialized
=
true
;
}
void
MaemoToolChain
::
setSysrootAndToolchain
()
void
MaemoToolChain
::
setSysrootAndToolchain
()
const
{
QFile
file
(
QDir
::
cleanPath
(
targetRoot
())
+
QLatin1String
(
"/information"
));
if
(
file
.
exists
()
&&
file
.
open
(
QIODevice
::
ReadOnly
|
QIODevice
::
Text
))
{
...
...
This diff is collapsed.
Click to expand it.
src/plugins/qt4projectmanager/qt-maemo/maemotoolchain.h
+
11
−
11
View file @
158fe472
...
...
@@ -63,24 +63,24 @@ protected:
bool
equals
(
ToolChain
*
other
)
const
;
private:
void
setMaddeRoot
();
void
setSimulatorRoot
();
void
setSysrootAndToolchain
();
void
setMaddeRoot
()
const
;
void
setSimulatorRoot
()
const
;
void
setSysrootAndToolchain
()
const
;
private:
QString
m_maddeRoot
;
bool
m_maddeInitialized
;
mutable
QString
m_maddeRoot
;
mutable
bool
m_maddeInitialized
;
QString
m_sysrootRoot
;
bool
m_sysrootInitialized
;
mutable
QString
m_sysrootRoot
;
mutable
bool
m_sysrootInitialized
;
QString
m_simulatorRoot
;
bool
m_simulatorInitialized
;
mutable
QString
m_simulatorRoot
;
mutable
bool
m_simulatorInitialized
;
QString
m_targetRoot
;
QString
m_toolchainRoot
;
bool
m_toolchainInitialized
;
mutable
QString
m_toolchainRoot
;
mutable
bool
m_toolchainInitialized
;
};
}
// namespace Internal
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment