summaryrefslogtreecommitdiff
path: root/libreofficekit
diff options
context:
space:
mode:
authorPranav Kant <pranavk@gnome.org>2015-07-27 22:13:39 +0530
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-07-28 15:04:15 +0200
commit2d2b392dcda5bdfab61a358dc1dd725d65fba07f (patch)
treeeecca3c0c02158b5f92335e05142d5429c9f2598 /libreofficekit
parent7c45a57081a921b8f56812dd37c2fcd4b86d2a1a (diff)
lokdocview: post_command arguments are not supposed to be const
Change-Id: Ibc22d03d9eee9fd151ecf5773e36c2519141a5eb
Diffstat (limited to 'libreofficekit')
-rw-r--r--libreofficekit/source/gtk/lokdocview.cxx2
-rw-r--r--libreofficekit/source/gtk/tilebuffer.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index a54826158334..7ce27644125f 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -1947,7 +1947,7 @@ lok_doc_view_post_command (LOKDocView* pDocView,
GTask* task = g_task_new(pDocView, NULL, NULL, NULL);
LOEvent* pLOEvent = new LOEvent(LOK_POST_COMMAND);
pLOEvent->m_pCommand = pCommand;
- pLOEvent->m_pArguments = pArguments;
+ pLOEvent->m_pArguments = g_strdup(pArguments);
g_task_set_task_data(task, pLOEvent, g_free);
g_thread_pool_push(lokThreadPool, g_object_ref(task), NULL);
diff --git a/libreofficekit/source/gtk/tilebuffer.hxx b/libreofficekit/source/gtk/tilebuffer.hxx
index d2451b6c2290..dabf72f9ea67 100644
--- a/libreofficekit/source/gtk/tilebuffer.hxx
+++ b/libreofficekit/source/gtk/tilebuffer.hxx
@@ -158,7 +158,7 @@ struct LOEvent
/// @name post_command parameters
///@{
const gchar* m_pCommand;
- const gchar* m_pArguments;
+ gchar* m_pArguments;
///@}
/// @name open_document parameter