aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-01-06 11:07:42 (GMT)
committerfluxgen <fluxgen>2002-01-06 11:07:42 (GMT)
commit68d83ecc98409b3de783b3f213951018fd258a54 (patch)
tree4c0d1c9c7427208e84deaf368cee44637b23626f /src/Screen.cc
parentad3923a371d8f64a506cbaacb170a911be73093a (diff)
downloadfluxbox-68d83ecc98409b3de783b3f213951018fd258a54.zip
fluxbox-68d83ecc98409b3de783b3f213951018fd258a54.tar.bz2
Changed Misc::
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 07185d3..6f83536 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -39,6 +39,7 @@
39#include "Icon.hh" 39#include "Icon.hh"
40#include "Image.hh" 40#include "Image.hh"
41#include "Screen.hh" 41#include "Screen.hh"
42#include "StringUtil.hh"
42 43
43#ifdef SLIT 44#ifdef SLIT
44#include "Slit.hh" 45#include "Slit.hh"
@@ -831,13 +832,13 @@ void BScreen::saveStrftimeFormat(char *format) {
831 if (resource.strftime_format) 832 if (resource.strftime_format)
832 delete [] resource.strftime_format; 833 delete [] resource.strftime_format;
833 834
834 resource.strftime_format = Misc::strdup(format); 835 resource.strftime_format = StringUtil::strdup(format);
835} 836}
836#endif // HAVE_STRFTIME 837#endif // HAVE_STRFTIME
837 838
838 839
839void BScreen::addWorkspaceName(char *name) { 840void BScreen::addWorkspaceName(char *name) {
840 workspaceNames->insert(Misc::strdup(name)); 841 workspaceNames->insert(StringUtil::strdup(name));
841 842
842} 843}
843 844
@@ -847,7 +848,7 @@ void BScreen::getNameOfWorkspace(int id, char **name) {
847 char *wkspc_name = workspaceNames->find(id); 848 char *wkspc_name = workspaceNames->find(id);
848 849
849 if (wkspc_name) 850 if (wkspc_name)
850 *name = Misc::strdup(wkspc_name); 851 *name = StringUtil::strdup(wkspc_name);
851 } else 852 } else
852 *name = 0; 853 *name = 0;
853} 854}
@@ -1460,7 +1461,7 @@ Bool BScreen::parseMenuFile(FILE *file, Rootmenu *menu) {
1460 char **ls = new char* [entries]; 1461 char **ls = new char* [entries];
1461 int index = 0; 1462 int index = 0;
1462 while ((p = readdir(d))) 1463 while ((p = readdir(d)))
1463 ls[index++] = Misc::strdup(p->d_name); 1464 ls[index++] = StringUtil::strdup(p->d_name);
1464 1465
1465 qsort(ls, entries, sizeof(char *), dcmp); 1466 qsort(ls, entries, sizeof(char *), dcmp);
1466 1467