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
KDevelop
KDevelop
Commits
38933eee
Commit
38933eee
authored
Jan 18, 2022
by
Milian Wolff
Browse files
Cleanup: remove excessive KDevelop:: qualification
The .cpp file is `using namespace KDevelop` afer all.
parent
9178e8ad
Pipeline
#126567
passed with stage
in 32 minutes and 34 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
kdevplatform/language/editor/modificationrevision.cpp
View file @
38933eee
...
...
@@ -17,10 +17,9 @@
/// @todo Listen to filesystem changes (together with the project manager)
/// and call fileModificationCache().clear(...) when a file has changed
using
namespace
KDevelop
;
const
int
KDevelop
::
cacheModificationTimesForSeconds
=
30
;
using
namespace
KDevelop
;
namespace
{
struct
FileModificationCache
...
...
@@ -29,8 +28,8 @@ struct FileModificationCache
QDateTime
m_modificationTime
;
};
using
FileModificationMap
=
QHash
<
KDevelop
::
IndexedString
,
FileModificationCache
>
;
using
OpenDocumentRevisionsMap
=
QHash
<
KDevelop
::
IndexedString
,
int
>
;
using
FileModificationMap
=
QHash
<
IndexedString
,
FileModificationCache
>
;
using
OpenDocumentRevisionsMap
=
QHash
<
IndexedString
,
int
>
;
// data protected by the mutex in the StaticCacheData below
struct
CacheData
{
...
...
@@ -104,14 +103,14 @@ ModificationRevision ModificationRevision::revisionForFile(const IndexedString&
return
cacheData
().
op
([
&
url
](
CacheData
&
data
)
{
return
data
.
revisionForFile
(
url
);
});
}
void
ModificationRevision
::
clearEditorRevisionForFile
(
const
KDevelop
::
IndexedString
&
url
)
void
ModificationRevision
::
clearEditorRevisionForFile
(
const
IndexedString
&
url
)
{
ModificationRevisionSet
::
clearCache
();
///@todo Make the cache management more clever (don't clear the whole)
return
cacheData
().
op
([
&
url
](
CacheData
&
data
)
{
data
.
openRevisionsCache
.
remove
(
url
);
});
}
void
ModificationRevision
::
setEditorRevisionForFile
(
const
KDevelop
::
IndexedString
&
url
,
int
revision
)
void
ModificationRevision
::
setEditorRevisionForFile
(
const
IndexedString
&
url
,
int
revision
)
{
ModificationRevisionSet
::
clearCache
();
///@todo Make the cache management more clever (don't clear the whole)
...
...
Write
Preview
Markdown
is supported
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