X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fselect.cpp;h=65ce6ce62433174088863b6e1af1e0711342a1be;hp=e905729d84229877e09ce0fb7b1ad69a0c3d0939;hb=b617c5d7b5283ad260a77f01e42e6170cabbc03d;hpb=f17794d55923d4fb4f63e9d082d8d84a735a04e8 diff --git a/source/select.cpp b/source/select.cpp index e905729d..65ce6ce6 100644 --- a/source/select.cpp +++ b/source/select.cpp @@ -13,7 +13,7 @@ using namespace std; namespace { -vector *select_buf=0; +vector *select_buf = 0; vector select_buf_int; } @@ -25,7 +25,7 @@ void select_buffer(vector &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 &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--)