From 09cfa128b0f4c1b3f981b5bc28987bea1e8b4be7 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 23 May 2013 15:43:27 +1000 Subject: Switch to calls compatible with old compilers/run times so that cross compiling Linux -> OS X works. From Mitchell Foral. --- gtk/PlatGTK.cxx | 6 +++--- gtk/ScintillaGTK.cxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'gtk') diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 1227452b8..0ea2ba8ec 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -1881,7 +1881,7 @@ void ListBoxX::SetList(const char *listText, char separator, char typesep) { Clear(); int count = strlen(listText) + 1; std::vector words(listText, listText+count); - char *startword = words.data(); + char *startword = &words[0]; char *numword = NULL; int i = 0; for (; words[i]; i++) { @@ -1890,10 +1890,10 @@ void ListBoxX::SetList(const char *listText, char separator, char typesep) { if (numword) *numword = '\0'; Append(startword, numword?atoi(numword + 1):-1); - startword = words.data() + i + 1; + startword = &words[0] + i + 1; numword = NULL; } else if (words[i] == typesep) { - numword = words.data() + i; + numword = &words[0] + i; } } if (startword) { diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 4632dbe96..f744d4fbd 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -1554,7 +1554,7 @@ void ScintillaGTK::ReceivedDrop(GtkSelectionData *selection_data) { const char *data = reinterpret_cast(DataOfGSD(selection_data)); std::vector drop(data, data + LengthOfGSD(selection_data)); drop.push_back('\0'); - NotifyURIDropped(drop.data()); + NotifyURIDropped(&drop[0]); } else if ((TypeOfGSD(selection_data) == GDK_TARGET_STRING) || (TypeOfGSD(selection_data) == atomUTF8)) { if (TypeOfGSD(selection_data) > 0) { SelectionText selText; -- cgit v1.2.3