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
2dd1f0d8
Commit
2dd1f0d8
authored
Apr 15, 2011
by
Oswald Buddenhagen
Browse files
make m_changedFiles a set - for simplicity (and performance).
parent
011b3911
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/filemanager.cpp
View file @
2dd1f0d8
...
...
@@ -120,7 +120,7 @@ struct FileManagerPrivate {
static
FileManager
*
m_instance
;
QMap
<
QString
,
FileState
>
m_states
;
QString
List
m_changedFiles
;
QSet
<
QString
>
m_changedFiles
;
QList
<
IFile
*>
m_filesWithoutWatch
;
QMap
<
IFile
*
,
QStringList
>
m_filesWithWatch
;
QSet
<
QString
>
m_expectedFileNames
;
...
...
@@ -833,8 +833,8 @@ void FileManager::changedFile(const QString &fileName)
{
const
bool
wasempty
=
d
->
m_changedFiles
.
isEmpty
();
if
(
!
d
->
m_changedFiles
.
contains
(
fileName
)
&&
d
->
m_states
.
contains
(
fileName
))
d
->
m_changedFiles
.
append
(
fileName
);
if
(
d
->
m_states
.
contains
(
fileName
))
d
->
m_changedFiles
.
insert
(
fileName
);
if
(
wasempty
&&
!
d
->
m_changedFiles
.
isEmpty
())
{
QTimer
::
singleShot
(
200
,
this
,
SLOT
(
checkForReload
()));
...
...
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