]> git.lyx.org Git - lyx.git/blobdiff - src/support/rename.C
Fix small typos
[lyx.git] / src / support / rename.C
index 3f9324679124371dbb157bf81996e703b1b0ea7c..7a04be730ab61665adc84705167b03e0a6f02be8 100644 (file)
@@ -1,6 +1,6 @@
 #include <config.h>
 
-#include <stdio.h>
+#include <cstdio>
 
 #include "support/lyxlib.h"
 
@@ -8,3 +8,8 @@ bool lyx::rename(char const * from, char const * to)
 {
        return ::rename(from, to) != -1;
 }
+
+bool lyx::rename(string const & from, string const & to)
+{
+       return ::rename(from.c_str(), to.c_str()) != -1;
+}