]> git.lyx.org Git - features.git/commitdiff
trivial changes for all-in-one compilation
authorPeter Kümmel <syntheticpp@gmx.net>
Tue, 20 Mar 2007 21:53:01 +0000 (21:53 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Tue, 20 Mar 2007 21:53:01 +0000 (21:53 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17494 a592a061-630c-0410-9148-cb99ea01b6c8

src/format.C
src/graphics/PreviewLoader.C
src/support/docstream.C
src/support/lstrings.C

index fa327785dadd188a85976ccb42f90777708a94f2..d762f297365e40e3f383fd8821f832d89b7492a3 100644 (file)
@@ -53,9 +53,9 @@ namespace os = support::os;
 
 namespace {
 
-string const token_from("$$i");
-string const token_path("$$p");
-string const token_socket("$$a");
+string const token_from_format("$$i");
+string const token_path_format("$$p");
+string const token_socket_format("$$a");
 
 
 class FormatNamesEqual : public std::unary_function<Format, bool> {
@@ -309,12 +309,12 @@ bool Formats::view(Buffer const & buffer, FileName const & filename,
                        command += 'r';
        }
 
-       if (!contains(command, token_from))
-               command += ' ' + token_from;
+       if (!contains(command, token_from_format))
+               command += ' ' + token_from_format;
 
-       command = subst(command, token_from, quoteName(filename.toFilesystemEncoding()));
-       command = subst(command, token_path, quoteName(onlyPath(filename.toFilesystemEncoding())));
-       command = subst(command, token_socket, quoteName(theLyXServerSocket().address()));
+       command = subst(command, token_from_format, quoteName(filename.toFilesystemEncoding()));
+       command = subst(command, token_path_format, quoteName(onlyPath(filename.toFilesystemEncoding())));
+       command = subst(command, token_socket_format, quoteName(theLyXServerSocket().address()));
        lyxerr[Debug::FILES] << "Executing command: " << command << std::endl;
        // FIXME UNICODE utf8 can be wrong for files
        buffer.message(_("Executing command: ") + from_utf8(command));
@@ -368,12 +368,12 @@ bool Formats::edit(Buffer const & buffer, FileName const & filename,
 
        string command = format->editor();
 
-       if (!contains(command, token_from))
-               command += ' ' + token_from;
+       if (!contains(command, token_from_format))
+               command += ' ' + token_from_format;
 
-       command = subst(command, token_from, quoteName(filename.toFilesystemEncoding()));
-       command = subst(command, token_path, quoteName(onlyPath(filename.toFilesystemEncoding())));
-       command = subst(command, token_socket, quoteName(theLyXServerSocket().address()));
+       command = subst(command, token_from_format, quoteName(filename.toFilesystemEncoding()));
+       command = subst(command, token_path_format, quoteName(onlyPath(filename.toFilesystemEncoding())));
+       command = subst(command, token_socket_format, quoteName(theLyXServerSocket().address()));
        lyxerr[Debug::FILES] << "Executing command: " << command << std::endl;
        // FIXME UNICODE utf8 can be wrong for files
        buffer.message(_("Executing command: ") + from_utf8(command));
index bc8a60f28868c4f6acb7f2bb41bd439474686f8d..68d8262a9ca653df527182f15c95137127b4c8ca 100644 (file)
@@ -268,11 +268,11 @@ private:
        double font_scaling_factor_;
 
        /// We don't own this
-       static Converter const * pconverter_;
+       static lyx::Converter const * pconverter_;
 };
 
 
-Converter const * PreviewLoader::Impl::pconverter_;
+lyx::Converter const * PreviewLoader::Impl::pconverter_;
 
 
 //
index ac9a8ed23050ac38e91e9c28787dda125151e798..cc767c87df57356e9f7b64fd87b60434788a3f20 100644 (file)
 #include <iconv.h>
 #include <locale>
 
+#ifdef min
+#undef min
+#endif
+
+#ifdef max
+#undef max
+#endif
 
 using lyx::ucs4_codeset;
 
index fe161be9913257702d9375a4be697dae9de562db..2ed7d93e4cd405aef1003ee50f06d7077e709781 100644 (file)
@@ -753,7 +753,7 @@ getVectorFromStringT(String const & str, String const & delim)
        if (str.empty())
                return vec;
        String keys = rtrim(str);
-       for(;;) {
+       for(; ;) {
                typename String::size_type const idx = keys.find(delim);
                if (idx == String::npos) {
                        vec.push_back(ltrim(keys));