- Timestamp:
- 01/17/15 04:15:17 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/param/param.cpp
r290 r300 102 102 if (*t) 103 103 { 104 const char* til=strchr(t,'~'); 105 if (!til) 106 def=SString(t); 107 else 108 { 109 while ((til>t)&&(til[-1]==' ')) til--; 110 def=SString(t,til-t); 111 } 104 const char* end=strchr(t,'~'); 105 if (!end) 106 end=t+strlen(t); 107 while ((end>t)&&(end[-1]==' ')) end--; 108 def=SString(t,end-t); 112 109 } 113 110 return 3; … … 119 116 void ParamInterface::setDefault() 120 117 { 121 int n = getPropCount(); 122 for (int i = 0; i < n; i++) 118 for (int i = 0; i < getPropCount(); i++) 123 119 setDefault(i); 124 120 } … … 126 122 void ParamInterface::setMin() 127 123 { 128 int n = getPropCount(); 129 for (int i = 0; i < n; i++) 124 for (int i = 0; i < getPropCount(); i++) 130 125 setMin(i); 131 126 } … … 133 128 void ParamInterface::setMax() 134 129 { 135 int n = getPropCount(); 136 for (int i = 0; i < n; i++) 130 for (int i = 0; i < getPropCount(); i++) 137 131 setMax(i); 138 132 }
Note: See TracChangeset
for help on using the changeset viewer.