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
Tobias Hunger
qt-creator
Commits
699495f0
Commit
699495f0
authored
Oct 19, 2010
by
Friedemann Kleint
Browse files
Fix compiler warnings, constify.
parent
dfee3388
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/libs/utils/filesearch.cpp
View file @
699495f0
...
...
@@ -79,20 +79,18 @@ void runFileSearch(QFutureInterface<FileSearchResultList> &future,
future
.
setProgressRange
(
0
,
files
->
maxProgress
());
future
.
setProgressValueAndText
(
files
->
currentProgress
(),
msgFound
(
searchTerm
,
numMatches
,
numFilesSearched
));
bool
caseInsensitive
=
!
(
flags
&
QTextDocument
::
FindCaseSensitively
);
bool
wholeWord
=
(
flags
&
QTextDocument
::
FindWholeWords
);
const
bool
caseInsensitive
=
!
(
flags
&
QTextDocument
::
FindCaseSensitively
);
const
bool
wholeWord
=
(
flags
&
QTextDocument
::
FindWholeWords
);
const
QString
searchTermLower
=
searchTerm
.
toLower
();
const
QString
searchTermUpper
=
searchTerm
.
toUpper
();
int
termLength
=
searchTerm
.
length
();
int
termMaxIndex
=
termLength
-
1
;
const
int
termLength
=
searchTerm
.
length
();
const
int
termMaxIndex
=
termLength
-
1
;
const
QChar
*
termData
=
searchTerm
.
constData
();
const
QChar
*
termDataLower
=
searchTermLower
.
constData
();
const
QChar
*
termDataUpper
=
searchTermUpper
.
constData
();
int
chunkSize
=
qMax
(
100000
,
2
*
termLength
);
QFile
file
;
QString
str
;
QTextStream
stream
;
...
...
@@ -295,7 +293,7 @@ QString Utils::expandRegExpReplacement(const QString &replaceText, const QString
{
// handles \1 \\ \& & \t
QString
result
;
int
numCaptures
=
capturedTexts
.
size
()
-
1
;
const
int
numCaptures
=
capturedTexts
.
size
()
-
1
;
for
(
int
i
=
0
;
i
<
replaceText
.
length
();
++
i
)
{
QChar
c
=
replaceText
.
at
(
i
);
if
(
c
==
QLatin1Char
(
'\\'
)
&&
i
<
replaceText
.
length
()
-
1
)
{
...
...
@@ -408,8 +406,8 @@ bool SubDirFileIterator::hasNext() const
return
true
;
while
(
!
m_dirs
.
isEmpty
()
&&
m_currentFiles
.
isEmpty
())
{
QDir
dir
=
m_dirs
.
pop
();
qreal
dirProgressMax
=
m_progressValues
.
pop
();
bool
processed
=
m_processedValues
.
pop
();
const
qreal
dirProgressMax
=
m_progressValues
.
pop
();
const
bool
processed
=
m_processedValues
.
pop
();
if
(
dir
.
exists
())
{
QStringList
subDirs
;
if
(
!
processed
)
{
...
...
src/plugins/qt4projectmanager/profileeditor.cpp
View file @
699495f0
...
...
@@ -121,7 +121,7 @@ static bool isValidFileNameChar(const QChar &c)
}
ProFileEditor
::
Link
ProFileEditor
::
findLinkAt
(
const
QTextCursor
&
cursor
,
bool
resolveTarget
)
bool
/*
resolveTarget
*/
)
{
Link
link
;
...
...
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