Ce site fonctionne mieux avec JavaScript.
Accueil
Aide
Connexion
lolengine
/
lol
miroir de
https://github.com/lolengine/lol
Suivre
1
Ajouter aux favoris
0
Bifurcation
0
Code
Tickets
0
Versions
0
Wiki
Activité
Parcourir la source
base: allow String::C() to be non-const.
undefined
Sam Hocevar
il y a 12 ans
Parent
af695ca56c
révision
7cd3341504
1 fichiers modifiés
avec
6 ajouts
et
0 suppressions
Vue séparée
Option de Diff
Voir les Statistiques
Télécharger le Fichier Patch
Télécharger le Fichier des Différences
+6
-0
src/lol/base/string.h
+ 6
- 0
src/lol/base/string.h
Voir le fichier
@@ -101,6 +101,12 @@ public:
return &(*this)[0];
}
/* Non-const version; make sure to not overflow the internal array */
inline char *C()
{
return &(*this)[0];
}
/* Does not initialise the newly allocated characters */
void Resize(int count)
{
Écrire
Aperçu
Chargement…
Annuler
Enregistrer