[haiku-commits] Re: haiku: hrev47842 - src/preferences/network

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 09 Sep 2014 23:13:29 +0200

On 09/09/2014 11:06 PM, stefano.ceccherini@xxxxxxxxx wrote:
+static int32
+GetDNSListFromString(BString string, BObjectList<BString>& list)
+{
+       for (size_t startPos = 0;
+               (startPos = strcspn(string.String(), "1234567890"))
+                       != (size_t)string.Length();) {
+               /*size_t startPos = strcspn(string.String(), "1234567890");
+               if (startPos == (size_t)string.Length())
+                       break;*/

In case you were undecided, I find the commented out part prettier to read :-)

Bye,
   Axel.


Other related posts: