]> git.tdb.fi Git - libs/gl.git/blobdiff - source/select.cpp
Style update: add spaces around assignment operators
[libs/gl.git] / source / select.cpp
index e905729d84229877e09ce0fb7b1ad69a0c3d0939..65ce6ce62433174088863b6e1af1e0711342a1be 100644 (file)
@@ -13,7 +13,7 @@ using namespace std;
 
 namespace {
 
-vector<Msp::GL::SelectRecord> *select_buf=0;
+vector<Msp::GL::SelectRecord> *select_buf = 0;
 vector<unsigned> select_buf_int;
 
 }
@@ -25,7 +25,7 @@ void select_buffer(vector<SelectRecord> &buf)
 {
        select_buf_int.resize(1024);
        glSelectBuffer(select_buf_int.size(), &select_buf_int[0]);
-       select_buf=&buf;
+       select_buf = &buf;
 }
 
 void init_names()
@@ -50,14 +50,14 @@ void load_name(unsigned n)
 
 void parse_select_records(const unsigned *buf, unsigned count, vector<SelectRecord> &tbuf)
 {
-       unsigned i=0;
+       unsigned i = 0;
        while(count--)
        {
                SelectRecord record;
 
-               unsigned n_names=buf[i++];
-               record.min_depth=buf[i++];
-               record.max_depth=buf[i++];
+               unsigned n_names = buf[i++];
+               record.min_depth = buf[i++];
+               record.max_depth = buf[i++];
 
                record.names.reserve(n_names);
                while(n_names--)