Преглед на файлове

dumplots can just take a reference

Bryan Drewery преди 7 години
родител
ревизия
c1ad7dfe7e
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      src/dccutil.cc
  2. 1 1
      src/dccutil.h

+ 1 - 1
src/dccutil.cc

@@ -217,7 +217,7 @@ colorbuf(char *buf, size_t len, int idx, size_t bufsiz)
 
 /* Dump a potentially super-long string of text.
  */
-void dumplots(int idx, const char *prefix, const bd::String data)
+void dumplots(int idx, const char *prefix, const bd::String& data)
 {
   if (unlikely(!*data)) {
     dprintf(idx, "%s\n", prefix);

+ 1 - 1
src/dccutil.h

@@ -37,7 +37,7 @@ namespace bd {
 
 
 void init_dcc(void);
-void dumplots(int, const char *, bd::String);
+void dumplots(int, const char *, const bd::String&);
 void rdprintf(const char*, int, const char *, ...) __attribute__((format(printf, 3, 4)));
 void dprintf(int, const char *, ...) __attribute__((format(printf, 2, 3)));
 void dprintf_real(int, char*, size_t, size_t, const char* = NULL);