[Lldb-commits] [PATCH] D12796: [lldb-mi] No need to call Format with no varargs.
Bruce Mitchener via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 11 04:18:47 PDT 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL247403: [lldb-mi] No need to call Format with no varargs. (authored by brucem).
Changed prior to commit:
http://reviews.llvm.org/D12796?vs=34537&id=34539#toc
Repository:
rL LLVM
http://reviews.llvm.org/D12796
Files:
lldb/trunk/tools/lldb-mi/MICmnLLDBDebugSessionInfo.cpp
lldb/trunk/tools/lldb-mi/MIDriverMgr.cpp
Index: lldb/trunk/tools/lldb-mi/MICmnLLDBDebugSessionInfo.cpp
===================================================================
--- lldb/trunk/tools/lldb-mi/MICmnLLDBDebugSessionInfo.cpp
+++ lldb/trunk/tools/lldb-mi/MICmnLLDBDebugSessionInfo.cpp
@@ -106,7 +106,7 @@
bOk = SharedDataDestroy();
if (!bOk)
{
- errMsg = CMIUtilString::Format(MIRSRC(IDS_DBGSESSION_ERR_SHARED_DATA_RELEASE));
+ errMsg = MIRSRC(IDS_DBGSESSION_ERR_SHARED_DATA_RELEASE);
errMsg += "\n";
}
m_vecActiveThreadId.clear();
Index: lldb/trunk/tools/lldb-mi/MIDriverMgr.cpp
===================================================================
--- lldb/trunk/tools/lldb-mi/MIDriverMgr.cpp
+++ lldb/trunk/tools/lldb-mi/MIDriverMgr.cpp
@@ -300,7 +300,7 @@
}
else
{
- const CMIUtilString errMsg(CMIUtilString::Format(MIRSRC(IDS_DRIVER_ERR_CURRENT_NOT_SET)));
+ const CMIUtilString errMsg(MIRSRC(IDS_DRIVER_ERR_CURRENT_NOT_SET));
CMICmnStreamStdout::Instance().Write(errMsg, true);
return MIstatus::failure;
}
@@ -327,7 +327,7 @@
{
if (m_pDriverCurrent == nullptr)
{
- const CMIUtilString errMsg(CMIUtilString::Format(MIRSRC(IDS_DRIVER_ERR_CURRENT_NOT_SET)));
+ const CMIUtilString errMsg(MIRSRC(IDS_DRIVER_ERR_CURRENT_NOT_SET));
CMICmnStreamStdout::Instance().Write(errMsg, true);
return MIstatus::failure;
}
@@ -363,7 +363,7 @@
return m_pDriverCurrent->GetError();
else
{
- const CMIUtilString errMsg(CMIUtilString::Format(MIRSRC(IDS_DRIVER_ERR_CURRENT_NOT_SET)));
+ const CMIUtilString errMsg(MIRSRC(IDS_DRIVER_ERR_CURRENT_NOT_SET));
CMICmnStreamStdout::Instance().Write(errMsg, true);
}
@@ -385,7 +385,7 @@
return m_pDriverCurrent->GetName();
else
{
- const CMIUtilString errMsg(CMIUtilString::Format(MIRSRC(IDS_DRIVER_ERR_CURRENT_NOT_SET)));
+ const CMIUtilString errMsg(MIRSRC(IDS_DRIVER_ERR_CURRENT_NOT_SET));
CMICmnStreamStdout::Instance().Write(errMsg, true);
}
@@ -408,7 +408,7 @@
pDebugger = &m_pDriverCurrent->GetTheDebugger();
else
{
- const CMIUtilString errMsg(CMIUtilString::Format(MIRSRC(IDS_DRIVER_ERR_CURRENT_NOT_SET)));
+ const CMIUtilString errMsg(MIRSRC(IDS_DRIVER_ERR_CURRENT_NOT_SET));
CMICmnStreamStdout::Instance().Write(errMsg, true);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12796.34539.patch
Type: text/x-patch
Size: 2422 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150911/614a71e1/attachment-0001.bin>
More information about the lldb-commits
mailing list