]> git.lyx.org Git - lyx.git/blobdiff - src/support/userinfo.C
* lyxfunctional.h: delete compare_memfun and helper classes
[lyx.git] / src / support / userinfo.C
index 302474338395911a96cb31f488f05b4d3ea3be5e..6624b5cbcdeb7dc06ec87b06d2146b279f0e7134 100644 (file)
@@ -5,25 +5,29 @@
  *
  * \author John Levon
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 
 #include "userinfo.h"
-#include "LAssert.h"
 #include "filetools.h"
 
+#include <boost/assert.hpp>
+
 #include <pwd.h>
 #include <unistd.h>
 #include <sys/types.h>
 
+using std::string;
+
 namespace lyx {
+namespace support {
 
 string const user_name()
 {
        struct passwd * pw(getpwuid(geteuid()));
-       lyx::Assert(pw);
+       BOOST_ASSERT(pw);
 
        string name = pw->pw_gecos;
        if (name.empty())
@@ -40,5 +44,5 @@ string const user_email()
        return email;
 }
 
-
+} // namespace support
 } // namespace lyx