Commit 8ec7e64
Firebase cpp: Changed mutable_string() const to support returning value of static or small strings to fix non obvious behavior difference between this and the non const version.
Due to the wide spread use of mutable_string() to access string value regardless of string type, this function has changed to support returning all string types as std::string to not break existing code at runtime.
PiperOrigin-RevId: 2750517891 parent 3b05efe commit 8ec7e64
1 file changed
+7
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
695 | | - | |
| 695 | + | |
696 | 696 | | |
697 | 697 | | |
698 | | - | |
699 | | - | |
| 698 | + | |
| 699 | + | |
700 | 700 | | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
| |||
0 commit comments