Skip to content

Commit 8b7126d

Browse files
authored
Fixup weird combination of oneline/multi line comments (#7566)
Although GCC seems to be able to grok it, it looks weird in my editor. this is the only place in the code base where this combination is used, so I hope its okay to remove it.
1 parent df01d19 commit 8b7126d

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

cores/esp8266/WString.cpp

+24-24
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ String::~String() {
124124
invalidate();
125125
}
126126

127-
// /*********************************************/
128-
// /* Memory Management */
129-
// /*********************************************/
127+
/*********************************************/
128+
/* Memory Management */
129+
/*********************************************/
130130

131131
inline void String::init(void) {
132132
setSSO(true);
@@ -199,9 +199,9 @@ unsigned char String::changeBuffer(unsigned int maxStrLen) {
199199
return 0;
200200
}
201201

202-
// /*********************************************/
203-
// /* Copy and Move */
204-
// /*********************************************/
202+
/*********************************************/
203+
/* Copy and Move */
204+
/*********************************************/
205205

206206
String & String::copy(const char *cstr, unsigned int length) {
207207
if (!reserve(length)) {
@@ -297,9 +297,9 @@ String & String::operator = (const __FlashStringHelper *pstr)
297297
return *this;
298298
}
299299

300-
// /*********************************************/
301-
// /* concat */
302-
// /*********************************************/
300+
/*********************************************/
301+
/* concat */
302+
/*********************************************/
303303

304304
unsigned char String::concat(const String &s) {
305305
// Special case if we're concatting ourself (s += s;) since we may end up
@@ -483,9 +483,9 @@ StringSumHelper & operator + (const StringSumHelper &lhs, const __FlashStringHel
483483
return a;
484484
}
485485

486-
// /*********************************************/
487-
// /* Comparison */
488-
// /*********************************************/
486+
/*********************************************/
487+
/* Comparison */
488+
/*********************************************/
489489

490490
int String::compareTo(const String &s) const {
491491
if(!buffer() || !s.buffer()) {
@@ -587,9 +587,9 @@ unsigned char String::endsWith(const String &s2) const {
587587
return strcmp(&buffer()[len() - s2.len()], s2.buffer()) == 0;
588588
}
589589

590-
// /*********************************************/
591-
// /* Character Access */
592-
// /*********************************************/
590+
/*********************************************/
591+
/* Character Access */
592+
/*********************************************/
593593

594594
char String::charAt(unsigned int loc) const {
595595
return operator[](loc);
@@ -629,9 +629,9 @@ void String::getBytes(unsigned char *buf, unsigned int bufsize, unsigned int ind
629629
buf[n] = 0;
630630
}
631631

632-
// /*********************************************/
633-
// /* Search */
634-
// /*********************************************/
632+
/*********************************************/
633+
/* Search */
634+
/*********************************************/
635635

636636
int String::indexOf(char c) const {
637637
return indexOf(c, 0);
@@ -713,9 +713,9 @@ String String::substring(unsigned int left, unsigned int right) const {
713713
return out;
714714
}
715715

716-
// /*********************************************/
717-
// /* Modification */
718-
// /*********************************************/
716+
/*********************************************/
717+
/* Modification */
718+
/*********************************************/
719719

720720
void String::replace(char find, char replace) {
721721
if (!buffer())
@@ -828,9 +828,9 @@ void String::trim(void) {
828828
wbuffer()[newlen] = 0;
829829
}
830830

831-
// /*********************************************/
832-
// /* Parsing / Conversion */
833-
// /*********************************************/
831+
/*********************************************/
832+
/* Parsing / Conversion */
833+
/*********************************************/
834834

835835
long String::toInt(void) const {
836836
if (buffer())

0 commit comments

Comments
 (0)