refact: change DEBUG_MODE
to DDE_DEBUG_MODE
Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
@ -9,7 +9,7 @@ constexpr auto SystemdService = u8"org.freedesktop.systemd1";
|
||||
constexpr auto SystemdObjectPath = u8"/org/freedesktop/systemd1";
|
||||
constexpr auto SystemdInterfaceName = u8"org.freedesktop.systemd1.Manager";
|
||||
constexpr auto DDEApplicationManager1ServiceName =
|
||||
#ifdef DEBUG_MODE
|
||||
#ifdef DDE_DEBUG_MODE
|
||||
u8"org.deepin.dde.debug.ApplicationManager1";
|
||||
#else
|
||||
u8"org.deepin.dde.ApplicationManager1";
|
||||
@ -22,14 +22,14 @@ constexpr auto DesktopFileEntryKey = u8"Desktop Entry";
|
||||
constexpr auto DesktopFileActionKey = u8"Desktop Action ";
|
||||
|
||||
constexpr auto ApplicationManagerServerDBusName =
|
||||
#ifdef DEBUG_MODE
|
||||
#ifdef DDE_DEBUG_MODE
|
||||
u8"deepin_application_manager_debug_server_bus";
|
||||
#else
|
||||
u8"deepin_application_manager_server_bus";
|
||||
#endif
|
||||
|
||||
constexpr auto ApplicationManagerDestDBusName =
|
||||
#ifdef DEBUG_MODE
|
||||
#ifdef DDE_DEBUG_MODE
|
||||
u8"deepin_application_manager_debug_dest_bus";
|
||||
#else
|
||||
u8"deepin_application_manager_dest_bus";
|
||||
|
@ -426,7 +426,7 @@ std::optional<DesktopEntry::Value> DesktopEntry::value(const QString &groupKey,
|
||||
{
|
||||
const auto &destGroup = group(groupKey);
|
||||
if (!destGroup) {
|
||||
#ifdef DEBUG_MODE
|
||||
#ifdef DDE_DEBUG_MODE
|
||||
qWarning() << "group " << groupKey << " can't be found.";
|
||||
#endif
|
||||
return std::nullopt;
|
||||
@ -434,7 +434,7 @@ std::optional<DesktopEntry::Value> DesktopEntry::value(const QString &groupKey,
|
||||
|
||||
auto it = destGroup->find(valueKey);
|
||||
if (it == destGroup->cend()) {
|
||||
#ifdef DEBUG_MODE
|
||||
#ifdef DDE_DEBUG_MODE
|
||||
qWarning() << "value " << valueKey << " can't be found.";
|
||||
#endif
|
||||
return std::nullopt;
|
||||
|
Reference in New Issue
Block a user