summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Screen.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 2441593..9ff9c8a 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Screen.cc,v 1.60 2002/08/04 15:48:13 fluxgen Exp $ 25// $Id: Screen.cc,v 1.61 2002/08/11 22:28:18 fluxgen Exp $
26 26
27//use GNU extensions 27//use GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -1081,14 +1081,13 @@ void BScreen::addWorkspaceName(const char *name) {
1081} 1081}
1082 1082
1083 1083
1084void BScreen::getNameOfWorkspace(unsigned int workspace, char **name) { 1084string BScreen::getNameOfWorkspace(unsigned int workspace) const {
1085 if (workspace < workspaceNames.size()) { 1085 if (workspace < workspaceNames.size()) {
1086 const char *wkspc_name = workspaceNames[workspace].c_str(); 1086 return workspaceNames[workspace];
1087 } else {
1088 return "";
1089 }
1087 1090
1088 if (wkspc_name)
1089 *name = StringUtil::strdup(wkspc_name);
1090 } else
1091 *name = 0;
1092} 1091}
1093 1092
1094 1093