Commit 38933eee authored by Milian Wolff's avatar 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
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment