summaryrefslogtreecommitdiff
path: root/libkms++/card.cpp
diff options
context:
space:
mode:
authorJyri Sarha <jsarha@ti.com>2015-09-29 20:41:19 +0300
committerJyri Sarha <jsarha@ti.com>2015-09-30 14:37:07 +0300
commitef7fa369385fc99be4c861e5b3d444e32c5c101b (patch)
treed3708fd48e6594d2844f4c417cccd0c0c2877c5e /libkms++/card.cpp
parent1f6b4591b4697a3acf228e694c490cc5f75ae4e4 (diff)
There is no need to convert exception strings to .c_str().
Diffstat (limited to 'libkms++/card.cpp')
-rw-r--r--libkms++/card.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libkms++/card.cpp b/libkms++/card.cpp
index 7aa8bdb..52a0f7a 100644
--- a/libkms++/card.cpp
+++ b/libkms++/card.cpp
@@ -26,8 +26,8 @@ Card::Card()
int fd = open(card, O_RDWR | O_CLOEXEC);
if (fd < 0)
- throw invalid_argument((string(strerror(errno)) +
- " opening " + card).c_str());
+ throw invalid_argument(string(strerror(errno)) + " opening " +
+ card);
m_fd = fd;
int r;
@@ -222,7 +222,7 @@ std::vector<kms::Pipeline> Card::get_connected_pipelines()
if (!crtc)
throw invalid_argument(string("Connector #") +
- to_string(conn->idx()) +
+ to_string(conn->idx()) +
" has no possible crtcs");
outputs.push_back(Pipeline { crtc, conn });