Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
3ef1bf0f
Commit
3ef1bf0f
authored
Jun 15, 2010
by
Oswald Buddenhagen
Browse files
micro-optimizations & cleanups
parent
ebb4e044
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/profilereader.cpp
View file @
3ef1bf0f
...
...
@@ -89,7 +89,7 @@ QList<ProFile*> ProFileReader::includeFiles() const
QString
ProFileReader
::
value
(
const
QString
&
variable
)
const
{
QStringList
vals
=
values
(
variable
);
const
QStringList
&
vals
=
values
(
variable
);
if
(
!
vals
.
isEmpty
())
return
vals
.
first
();
...
...
src/plugins/qt4projectmanager/qt4target.h
View file @
3ef1bf0f
...
...
@@ -40,7 +40,6 @@ namespace Qt4ProjectManager {
class
Qt4Project
;
namespace
Internal
{
class
ProFileReader
;
class
Qt4ProFileNode
;
class
Qt4TargetFactory
;
class
Qt4BuildConfigurationFactory
;
...
...
src/shared/proparser/profileevaluator.cpp
View file @
3ef1bf0f
...
...
@@ -3574,7 +3574,8 @@ ProFileEvaluator::Private::VisitReturn ProFileEvaluator::Private::evaluateCondit
logMessage
(
format
(
"include(file, into, silent) requires one, two or three arguments."
));
return
ReturnFalse
;
}
QString
fn
=
resolvePath
(
expandEnvVars
(
args
.
at
(
0
).
toQString
()));
QString
fn
=
resolvePath
(
expandEnvVars
(
args
.
at
(
0
).
toQString
(
m_tmp1
)));
fn
.
detach
();
bool
ok
;
if
(
parseInto
.
isEmpty
())
{
ok
=
evaluateFile
(
fn
);
...
...
@@ -4147,7 +4148,7 @@ QStringList ProFileEvaluator::absoluteFileValues(
return
result
;
}
ProFileEvaluator
::
TemplateType
ProFileEvaluator
::
templateType
()
ProFileEvaluator
::
TemplateType
ProFileEvaluator
::
templateType
()
const
{
const
ProStringList
&
templ
=
d
->
values
(
statics
.
strTEMPLATE
);
if
(
templ
.
count
()
>=
1
)
{
...
...
src/shared/proparser/profileevaluator.h
View file @
3ef1bf0f
...
...
@@ -74,7 +74,7 @@ public:
ProFileEvaluator
(
ProFileOption
*
option
);
virtual
~
ProFileEvaluator
();
ProFileEvaluator
::
TemplateType
templateType
();
ProFileEvaluator
::
TemplateType
templateType
()
const
;
void
setVerbose
(
bool
on
);
// Default is false
void
setCumulative
(
bool
on
);
// Default is true!
void
setOutputDir
(
const
QString
&
dir
);
// Default is empty
...
...
src/shared/proparser/proitems.cpp
View file @
3ef1bf0f
...
...
@@ -335,9 +335,8 @@ ProFile::ProFile(const QString &fileName)
m_fileName
(
fileName
)
{
int
nameOff
=
fileName
.
lastIndexOf
(
QLatin1Char
(
'/'
));
m_displayFileName
=
QString
(
fileName
.
constData
()
+
nameOff
+
1
,
fileName
.
length
()
-
nameOff
-
1
);
m_directoryName
=
QString
(
fileName
.
constData
(),
nameOff
);
m_displayFileName
=
fileName
.
mid
(
nameOff
+
1
);
m_directoryName
=
fileName
.
left
(
nameOff
);
}
ProFile
::~
ProFile
()
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment