Logo
Explore Help
Sign In
feedc0de/qt-creator
1
0
Fork 0
You've already forked qt-creator
forked from qt-creator/qt-creator
Code Pull Requests Activity
Files
14d21f4f2cf0926ae9423450d646f5c21bdc3bdd
qt-creator/src/libs/utils/storage.cpp

10 lines
191 B
C++
Raw Normal View History

Utils: Introduce a Storage class ... mapping Keys (currently QString) to Data (currently QVariant), i.e. effectively an oddly named QVariantMap. Plan is to 1. make QVariantMap using loading/saving related functions to use Storage instead of QVariant map, 2. replace QString by a UTF-8 container (QByteArray for starters) 3. add/remove parts of the map interface so that neither decoration of string literals in user code are needed, nor that unnecessary allocations happen. Long term Storage could cover some of the current JSON uses, with Storage's implementation possibly switching over to something based on JSON (or CBOR?) directly, to be closer what we typically send over the wire. Change-Id: Ic33b8e95fed5268d6298b5391ff42cbb582b56c4 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2023-08-23 14:10:58 +02:00
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "storage.h"
namespace Utils {
} // Utils
Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 48ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API