]> Dogcows Code - chaz/openbox/commitdiff
sync with bb-cvs
authorDana Jansens <danakj@orodu.net>
Sat, 1 Jun 2002 17:54:32 +0000 (17:54 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 1 Jun 2002 17:54:32 +0000 (17:54 +0000)
src/Basemenu.cc
src/Color.cc
src/GCCache.cc
src/Screen.cc
src/Texture.cc
src/Util.cc
src/Workspace.cc
src/blackbox.cc
src/main.cc

index fa2f4b0060185bca1b0a2e6320dc9199c0585ddd..575147e61c1e3538471e7a16d5ce4797a7928211 100644 (file)
@@ -40,6 +40,7 @@ extern "C" {
 }
 
 #include <algorithm>
+#include <assert.h>
 using namespace std;
 
 #include "i18n.hh"
index 7a36b03c50a1d370fbaa2219e0fe43c86a0af452..85f3ec19cbd37595238cc34bab581d2958a39157 100644 (file)
 #  include "../config.h"
 #endif // HAVE_CONFIG_H
 
-#include "Color.hh"
-#include "BaseDisplay.hh"
-
 extern "C" {
 #include <stdio.h>
 }
 
+#include <assert.h>
+
+#include "Color.hh"
+#include "BaseDisplay.hh"
+
 
 BColor::ColorCache BColor::colorcache;
 bool BColor::cleancache = false;
index 941d67ef0d0c80bd07005206b59000b904649d5c..57310a44168b46d9e570de7c7b573baede81b521 100644 (file)
@@ -90,8 +90,6 @@ BGCCache::~BGCCache(void) {
   std::for_each(cache, cache + cache_total_size, PointerAssassin());
   delete [] cache;
   delete [] contexts;
-  cache = 0;
-  contexts = 0;
 }
 
 
@@ -116,6 +114,7 @@ BGCCacheContext *BGCCache::nextContext(unsigned int scr) {
 
   fprintf(stderr, "BGCCache: context fault!\n");
   abort();
+  return (BGCCacheContext*) 0; // not reached
 }
 
 
index 8bdf9480cd4b0d2e051ebadd0fc9519964b39429..8779733cbcd1a90129847e188ead7e52093751e6 100644 (file)
@@ -66,8 +66,11 @@ extern "C" {
 #endif // HAVE_STDARG_H
 }
 
+#include <assert.h>
+
 #include <algorithm>
 #include <functional>
+#include <string>
 using std::string;
 
 #include "i18n.hh"
@@ -1039,7 +1042,7 @@ void BScreen::changeWorkspaceID(unsigned int id) {
 
     if (blackbox->getFocusedWindow() &&
         blackbox->getFocusedWindow()->getScreen() == this &&
-        (! blackbox->getFocusedWindow()->isStuck())) {
+        ! blackbox->getFocusedWindow()->isStuck()) {
       current_workspace->setLastFocusedWindow(blackbox->getFocusedWindow());
       blackbox->setFocusedWindow((BlackboxWindow *) 0);
     }
index 716522f6b159397cd69c0c173d8b97fb7f85b60b..caab82e83f2c87f12090da18145e129b3c9e863d 100644 (file)
@@ -32,6 +32,8 @@ extern "C" {
 #endif
 }
 
+#include <assert.h>
+
 #include "Texture.hh"
 #include "BaseDisplay.hh"
 #include "Image.hh"
index a97ffe50a591baa91a3ec11b54109c4e51a61dfb..bc685bfaf4dac4e2c55cd7c133ed83933c62cd36 100644 (file)
@@ -52,6 +52,8 @@ extern "C" {
 
 #include <X11/Xatom.h>
 
+#include <assert.h>
+
 #include <algorithm>
 
 #include "Util.hh"
index c21f329389340a51dbf3e21e210ae11c60db4f97..35b3b593f3fc221d0a51d57db6dbd23b13a74b89 100644 (file)
@@ -38,6 +38,8 @@ extern "C" {
 #endif // HAVE_STRING_H
 }
 
+#include <assert.h>
+
 #include <functional>
 #include <string>
 
@@ -506,26 +508,26 @@ bool Workspace::smartPlacement(Rect& win, const Rect& availableArea) {
   if (screen->getPlacementPolicy() == BScreen::RowSmartPlacement) {
     if(screen->getRowPlacementDirection() == BScreen::LeftRight) {
       if(screen->getColPlacementDirection() == BScreen::TopBottom)
-        sort(spaces.begin(), spaces.end(), rowLRTB);
+        std::sort(spaces.begin(), spaces.end(), rowLRTB);
       else
-        sort(spaces.begin(), spaces.end(), rowLRBT);
+        std::sort(spaces.begin(), spaces.end(), rowLRBT);
     } else {
       if(screen->getColPlacementDirection() == BScreen::TopBottom)
-        sort(spaces.begin(), spaces.end(), rowRLTB);
+        std::sort(spaces.begin(), spaces.end(), rowRLTB);
       else
-        sort(spaces.begin(), spaces.end(), rowRLBT);
+        std::sort(spaces.begin(), spaces.end(), rowRLBT);
     }
   } else {
     if(screen->getColPlacementDirection() == BScreen::TopBottom) {
       if(screen->getRowPlacementDirection() == BScreen::LeftRight)
-        sort(spaces.begin(), spaces.end(), colLRTB);
+        std::sort(spaces.begin(), spaces.end(), colLRTB);
       else
-        sort(spaces.begin(), spaces.end(), colRLTB);
+        std::sort(spaces.begin(), spaces.end(), colRLTB);
     } else {
       if(screen->getRowPlacementDirection() == BScreen::LeftRight)
-        sort(spaces.begin(), spaces.end(), colLRBT);
+        std::sort(spaces.begin(), spaces.end(), colLRBT);
       else
-        sort(spaces.begin(), spaces.end(), colRLBT);
+        std::sort(spaces.begin(), spaces.end(), colRLBT);
     }
   }
 
index ce727aff42354a5c62b2916513b9589bf37c992a..72bbf7234eedccea6566109a8f107516338e2c1d 100644 (file)
@@ -90,6 +90,8 @@ extern "C" {
 #endif // HAVE_LIBGEN_H
 }
 
+#include <assert.h>
+
 #include <algorithm>
 #include <string>
 using std::string;
index c374f69406f574bda60daeef288dc3934666e788..c06543a1cd08004778d5a1fa2eed45eda8fef946 100644 (file)
@@ -62,8 +62,8 @@ static void showHelp(int exitval) {
   // print program usage and command line options
   printf(i18n(mainSet, mainUsage,
               "Openbox %s : (c) 2002 - 2002 Ben Jansens\n"
-              "                 2001 - 2002 Sean 'Shaleh' Perry\n"
-              "                 1997 - 2000, 2002 Brad Hughes\n\n"
+              "                    2001 - 2002 Sean 'Shaleh' Perry\n"
+              "                    1997 - 2000, 2002 Brad Hughes\n\n"
               "  -display <string>\t\tuse display connection.\n"
               "  -rc <string>\t\t\tuse alternate resource file.\n"
               "  -menu <string>\t\tuse alternate menu file.\n"
This page took 0.03575 seconds and 4 git commands to generate.