Revision: 76902
          http://sourceforge.net/p/brlcad/code/76902
Author:   brlcad
Date:     2020-08-23 16:10:28 +0000 (Sun, 23 Aug 2020)
Log Message:
-----------
ws consistency cleanup

Modified Paths:
--------------
    brlcad/trunk/src/libdm/dm_plugins.cpp

Modified: brlcad/trunk/src/libdm/dm_plugins.cpp
===================================================================
--- brlcad/trunk/src/libdm/dm_plugins.cpp       2020-08-23 16:09:08 UTC (rev 
76901)
+++ brlcad/trunk/src/libdm/dm_plugins.cpp       2020-08-23 16:10:28 UTC (rev 
76902)
@@ -40,6 +40,7 @@
 #include "dm.h"
 #include "./include/private.h"
 
+
 extern "C" struct dm *
 dm_open(void *interp, const char *type, int argc, const char *argv[])
 {
@@ -48,7 +49,7 @@
     }
     std::map<std::string, const struct dm *> *dmb = (std::map<std::string, 
const struct dm *> *)dm_backends;
     std::string key(type);
-    std::transform(key.begin(), key.end(), key.begin(), [](unsigned char c){ 
return std::tolower(c); });
+    std::transform(key.begin(), key.end(), key.begin(), [](unsigned char c) { 
return std::tolower(c); });
     std::map<std::string, const struct dm *>::iterator d_it = dmb->find(key);
     if (d_it == dmb->end()) {
        return DM_NULL;
@@ -58,7 +59,8 @@
     return dmp;
 }
 
-extern "C" int 
+
+extern "C" int
 dm_have_graphics()
 {
     int ret = 0;
@@ -75,6 +77,7 @@
     return ret;
 }
 
+
 extern "C" const char *
 dm_graphics_system(const char *dmtype)
 {
@@ -93,6 +96,7 @@
     return ret;
 }
 
+
 extern "C" void
 dm_list_types(struct bu_vls *list, const char *separator)
 {
@@ -136,7 +140,7 @@
     const char *b = priority_list[i];
     while (!BU_STR_EQUAL(b, "nu")) {
        std::string key(b);
-       std::transform(key.begin(), key.end(), key.begin(), [](unsigned char 
c){ return std::tolower(c); });
+       std::transform(key.begin(), key.end(), key.begin(), [](unsigned char c) 
{ return std::tolower(c); });
        std::map<std::string, const struct dm *>::iterator d_it = 
dmb->find(key);
        if (d_it == dmb->end()) {
            i++;
@@ -153,6 +157,7 @@
 #endif
 }
 
+
 extern "C" int
 dm_validXType(const char *dpy_string, const char *name)
 {
@@ -164,7 +169,7 @@
     }
     std::map<std::string, const struct dm *> *dmb = (std::map<std::string, 
const struct dm *> *)dm_backends;
     std::string key(name);
-    std::transform(key.begin(), key.end(), key.begin(), [](unsigned char c){ 
return std::tolower(c); });
+    std::transform(key.begin(), key.end(), key.begin(), [](unsigned char c) { 
return std::tolower(c); });
     std::map<std::string, const struct dm *>::iterator d_it = dmb->find(key);
     if (d_it == dmb->end()) {
        return 0;
@@ -186,7 +191,7 @@
  * backend supports that check, and will report the "best" available WORKING
  * backend rather than simply the first one present in the list that is also
  * in the plugins directory.
-  */
+ */
 extern "C" const char *
 dm_bestXType(const char *dpy_string)
 {
@@ -198,7 +203,7 @@
     const char *b = priority_list[i];
     while (!BU_STR_EQUAL(b, "nu")) {
        std::string key(b);
-       std::transform(key.begin(), key.end(), key.begin(), [](unsigned char 
c){ return std::tolower(c); });
+       std::transform(key.begin(), key.end(), key.begin(), [](unsigned char c) 
{ return std::tolower(c); });
        std::map<std::string, const struct dm *>::iterator d_it = 
dmb->find(key);
        if (d_it == dmb->end()) {
            i++;
@@ -217,12 +222,13 @@
     return (ret) ? ret : b;
 }
 
+
 /**
  * dm_default_type suggests a display manager.  Checks if a plugin supplies the
  * specified backend type before reporting it, but does NOT perform a runtime
  * test to verify its suggestion will work (unlike dm_bestXType) before
  * reporting back.
-  */
+ */
 extern "C" const char *
 dm_default_type()
 {
@@ -234,7 +240,7 @@
     const char *b = priority_list[i];
     while (!BU_STR_EQUAL(b, "nu")) {
        std::string key(b);
-       std::transform(key.begin(), key.end(), key.begin(), [](unsigned char 
c){ return std::tolower(c); });
+       std::transform(key.begin(), key.end(), key.begin(), [](unsigned char c) 
{ return std::tolower(c); });
        std::map<std::string, const struct dm *>::iterator d_it = 
dmb->find(key);
        if (d_it == dmb->end()) {
            i++;
@@ -264,6 +270,7 @@
     }
 }
 
+
 extern "C" struct fb_platform_specific *
 fb_get_platform_specific(uint32_t magic)
 {
@@ -280,6 +287,7 @@
     return NULL;
 }
 
+
 extern "C" void
 fb_put_platform_specific(struct fb_platform_specific *fb_p)
 {
@@ -297,6 +305,7 @@
     return;
 }
 
+
 #define Malloc_Bomb(_bytes_)                                    \
     fb_log("\"%s\"(%d) : allocation of %lu bytes failed.\n",    \
            __FILE__, __LINE__, _bytes_)
@@ -319,6 +328,7 @@
     return 1;
 }
 
+
 struct fb *
 fb_open(const char *file, int width, int height)
 {
@@ -468,7 +478,6 @@
 }
 
 
-
 /*
  * Local Variables:
  * tab-width: 8

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to