aboutsummaryrefslogtreecommitdiffstats
path: root/libpyside/pysideslot.cpp
diff options
context:
space:
mode:
authorMatthew Woehlke <matthew.woehlke@kitware.com>2013-06-11 17:20:28 -0400
committerJohn Ehresman <jpe@wingware.com>2013-06-22 23:07:28 +0200
commite35d8904491e9ded4e64c9156e5e9f2b777b399f (patch)
tree62b4e97ae8605c6433615ee15f5764765eeb78a7 /libpyside/pysideslot.cpp
parentbe2b62c13228c58d807a91e5912228cce65c1478 (diff)
fix build in C++11 mode
Add spaces between string literals and preprocessor symbols. These are required because C++11 defines string prefix and suffix operators, and confuses preprocessor tokens adjacent to string literals as unrecognized string literal modifies, resulting in compile errors. Change-Id: I70f4efca0acb6d2ee03327c0afbc56fe7d82c2a3 Reviewed-by: John Ehresman <jpe@wingware.com>
Diffstat (limited to 'libpyside/pysideslot.cpp')
-rw-r--r--libpyside/pysideslot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpyside/pysideslot.cpp b/libpyside/pysideslot.cpp
index c84e4bf2e..97aa60dbe 100644
--- a/libpyside/pysideslot.cpp
+++ b/libpyside/pysideslot.cpp
@@ -47,7 +47,7 @@ static PyObject* slotCall(PyObject*, PyObject*, PyObject*);
// Class Definition -----------------------------------------------
static PyTypeObject PySideSlotType = {
PyVarObject_HEAD_INIT(0, 0)
- "PySide.QtCore."SLOT_DEC_NAME, /*tp_name*/
+ "PySide.QtCore." SLOT_DEC_NAME, /*tp_name*/
sizeof(PySideSlot), /*tp_basicsize*/
0, /*tp_itemsize*/
0, /*tp_dealloc*/
@@ -104,7 +104,7 @@ int slotTpInit(PyObject *self, PyObject *args, PyObject *kw)
if (emptyTuple == 0)
emptyTuple = PyTuple_New(0);
- if (!PyArg_ParseTupleAndKeywords(emptyTuple, kw, "|sO:QtCore."SLOT_DEC_NAME, (char**) kwlist, &argName, &argResult))
+ if (!PyArg_ParseTupleAndKeywords(emptyTuple, kw, "|sO:QtCore." SLOT_DEC_NAME, (char**) kwlist, &argName, &argResult))
return 0;
PySideSlot *data = reinterpret_cast<PySideSlot*>(self);