summaryrefslogtreecommitdiffstats
path: root/src/Daemon
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-12-06 22:23:11 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-12-06 22:23:11 +0100
commit4ceb3715a3a6b752009627b0dc6a1974664c03a1 (patch)
tree8c96d097e7e63f905925419a8a65c814d407605f /src/Daemon
parentf66aa07338bbc8a8a80264ec5be3ae25b677d94a (diff)
downloadabrt-4ceb3715a3a6b752009627b0dc6a1974664c03a1.tar.gz
abrt-4ceb3715a3a6b752009627b0dc6a1974664c03a1.tar.xz
abrt-4ceb3715a3a6b752009627b0dc6a1974664c03a1.zip
remove std::string usage from class CABRTException.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Daemon')
-rw-r--r--src/Daemon/CommLayerServerSocket.cpp2
-rw-r--r--src/Daemon/PluginManager.cpp18
2 files changed, 10 insertions, 10 deletions
diff --git a/src/Daemon/CommLayerServerSocket.cpp b/src/Daemon/CommLayerServerSocket.cpp
index ee775c6d..80dabb71 100644
--- a/src/Daemon/CommLayerServerSocket.cpp
+++ b/src/Daemon/CommLayerServerSocket.cpp
@@ -40,7 +40,7 @@ std::string CCommLayerServerSocket::GetSenderUID(int pSenderSocket)
socklen_t len = sizeof(creds);
if (getsockopt(pSenderSocket, SOL_SOCKET, SO_PEERCRED, &creds, &len) == -1)
{
- throw CABRTException(EXCEP_ERROR, "CCommLayerServerSocket::GetSenderUID(): Error can get sender uid.");
+ throw CABRTException(EXCEP_ERROR, "CCommLayerServerSocket::GetSenderUID(): error getting sender uid");
}
return to_string(creds.uid);
}
diff --git a/src/Daemon/PluginManager.cpp b/src/Daemon/PluginManager.cpp
index 58151b29..82f22e85 100644
--- a/src/Daemon/PluginManager.cpp
+++ b/src/Daemon/PluginManager.cpp
@@ -286,11 +286,11 @@ CAnalyzer* CPluginManager::GetAnalyzer(const char *pName)
map_plugins_t::iterator plugin = m_mapPlugins.find(pName);
if (plugin == m_mapPlugins.end())
{
- throw CABRTException(EXCEP_PLUGIN, ssprintf("Plugin '%s' is not registered", pName));
+ throw CABRTException(EXCEP_PLUGIN, "Plugin '%s' is not registered", pName);
}
if (m_mapABRTPlugins[pName]->GetType() != ANALYZER)
{
- throw CABRTException(EXCEP_PLUGIN, ssprintf("Plugin '%s' is not an analyzer plugin", pName));
+ throw CABRTException(EXCEP_PLUGIN, "Plugin '%s' is not an analyzer plugin", pName);
}
return (CAnalyzer*)(plugin->second);
}
@@ -300,11 +300,11 @@ CReporter* CPluginManager::GetReporter(const char *pName)
map_plugins_t::iterator plugin = m_mapPlugins.find(pName);
if (plugin == m_mapPlugins.end())
{
- throw CABRTException(EXCEP_PLUGIN, ssprintf("Plugin '%s' is not registered", pName));
+ throw CABRTException(EXCEP_PLUGIN, "Plugin '%s' is not registered", pName);
}
if (m_mapABRTPlugins[pName]->GetType() != REPORTER)
{
- throw CABRTException(EXCEP_PLUGIN, ssprintf("Plugin '%s' is not a reporter plugin", pName));
+ throw CABRTException(EXCEP_PLUGIN, "Plugin '%s' is not a reporter plugin", pName);
}
return (CReporter*)(plugin->second);
}
@@ -314,11 +314,11 @@ CAction* CPluginManager::GetAction(const char *pName)
map_plugins_t::iterator plugin = m_mapPlugins.find(pName);
if (plugin == m_mapPlugins.end())
{
- throw CABRTException(EXCEP_PLUGIN, ssprintf("Plugin '%s' is not registered", pName));
+ throw CABRTException(EXCEP_PLUGIN, "Plugin '%s' is not registered", pName);
}
if (m_mapABRTPlugins[pName]->GetType() != ACTION)
{
- throw CABRTException(EXCEP_PLUGIN, ssprintf("Plugin '%s' is not an action plugin", pName));
+ throw CABRTException(EXCEP_PLUGIN, "Plugin '%s' is not an action plugin", pName);
}
return (CAction*)(plugin->second);
}
@@ -328,11 +328,11 @@ CDatabase* CPluginManager::GetDatabase(const char *pName)
map_plugins_t::iterator plugin = m_mapPlugins.find(pName);
if (plugin == m_mapPlugins.end())
{
- throw CABRTException(EXCEP_PLUGIN, ssprintf("Plugin '%s' is not registered", pName));
+ throw CABRTException(EXCEP_PLUGIN, "Plugin '%s' is not registered", pName);
}
if (m_mapABRTPlugins[pName]->GetType() != DATABASE)
{
- throw CABRTException(EXCEP_PLUGIN, ssprintf("Plugin '%s' is not a database plugin", pName));
+ throw CABRTException(EXCEP_PLUGIN, "Plugin '%s' is not a database plugin", pName);
}
return (CDatabase*)(plugin->second);
}
@@ -342,7 +342,7 @@ plugin_type_t CPluginManager::GetPluginType(const char *pName)
map_plugins_t::iterator plugin = m_mapPlugins.find(pName);
if (plugin == m_mapPlugins.end())
{
- throw CABRTException(EXCEP_PLUGIN, ssprintf("Plugin '%s' is not registered", pName));
+ throw CABRTException(EXCEP_PLUGIN, "Plugin '%s' is not registered", pName);
}
return m_mapABRTPlugins[pName]->GetType();
}