summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2010-05-19 08:47:31 +0200
committerDanny Baumann <dannybaumann@web.de>2010-05-19 08:47:31 +0200
commit2c3400a0c6cd4b203f6ac94d152edb2e0cf6dbf1 (patch)
treed1ad663740f51969a42e33075d0cf070919607ca /src/window.cpp
parent09fd3e576b0614451f33679c6a3dc8c0739351b2 (diff)
downloadunity-window-decorator-2c3400a0c6cd4b203f6ac94d152edb2e0cf6dbf1.tar.gz
unity-window-decorator-2c3400a0c6cd4b203f6ac94d152edb2e0cf6dbf1.tar.bz2
Return resName as CompString so it can't be modified by the caller.
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 1d69427..c43b3c5 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -4641,10 +4641,13 @@ CompWindow::frame ()
return priv->frame;
}
-char *
+CompString
CompWindow::resName ()
{
- return priv->resName;
+ if (priv->resName)
+ return priv->resName;
+
+ return CompString ();
}
int