]> git.lyx.org Git - features.git/commitdiff
Whitespace.
authorAngus Leeming <leeming@lyx.org>
Tue, 25 Feb 2003 12:33:33 +0000 (12:33 +0000)
committerAngus Leeming <leeming@lyx.org>
Tue, 25 Feb 2003 12:33:33 +0000 (12:33 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6242 a592a061-630c-0410-9148-cb99ea01b6c8

src/graphics/LoaderQueue.C
src/graphics/LoaderQueue.h
src/graphics/PreviewLoader.C
src/support/userinfo.C

index 85f8311b51b25ad4413897d6ec90ddceba29f3a1..f7332d06eb48ec5f495925ce6f54ffa977c85ebb 100644 (file)
@@ -30,12 +30,12 @@ LoaderQueue & LoaderQueue::get()
 }
 
 
-void LoaderQueue::loadNext() 
+void LoaderQueue::loadNext()
 {
        emptyBucket();
        lyxerr[Debug::GRAPHICS] << "LoaderQueue: "
                                << cache_queue_.size()
-                               << " items in the queue" << endl; 
+                               << " items in the queue" << endl;
        int counter = s_numimages_;
        while (cache_queue_.size() && counter--) {
                if(cache_queue_.front()->status() == WaitingToLoad)
@@ -57,21 +57,21 @@ void LoaderQueue::setPriority(int numimages , int millisecs)
        s_millisecs_ = millisecs;
        lyxerr[Debug::GRAPHICS] << "LoaderQueue:  priority set to "
                                << s_numimages_ << " images at a time, "
-                               << s_millisecs_ << " milliseconds between calls" 
+                               << s_millisecs_ << " milliseconds between calls"
                                << endl;
 }
-       
 
-LoaderQueue::LoaderQueue() : timer(s_millisecs_, Timeout::ONETIME), 
+
+LoaderQueue::LoaderQueue() : timer(s_millisecs_, Timeout::ONETIME),
                             running_(false)
 {
        timer.timeout.connect(boost::bind(&LoaderQueue::loadNext, this));
 }
 
-       
+
 void LoaderQueue::emptyBucket()
 {
-       lyxerr[Debug::GRAPHICS] << "LoaderQueue: emptying bucket" 
+       lyxerr[Debug::GRAPHICS] << "LoaderQueue: emptying bucket"
                                << endl;
        while (! bucket_.empty()) {
                addToQueue(bucket_.front());
@@ -114,15 +114,15 @@ void LoaderQueue::touch(Cache::ItemPtr const & item)
 void LoaderQueue::addToQueue(Cache::ItemPtr const & item)
 {
        if (! cache_set_.insert(item).second) {
-               list<Cache::ItemPtr>::iterator 
+               list<Cache::ItemPtr>::iterator
                        it = cache_queue_.begin();
-               list<Cache::ItemPtr>::iterator 
+               list<Cache::ItemPtr>::iterator
                        end = cache_queue_.end();
-               
+
                it = std::find(it, end, item);
                if (it != end)
                        cache_queue_.erase(it);
-       } 
+       }
        cache_queue_.push_front(item);
 }
 
index 52db71313e2b9b95e14f582ece38bc4f1b85e547..9ed1dd8d7e6341b9284b1405392b388fdb52d08e 100644 (file)
@@ -6,11 +6,11 @@
  *
  *  \author Alfredo Braunstein
  *
- * Full author contact details are available in file CREDITS. 
+ * Full author contact details are available in file CREDITS.
  *
  * This implements a threaded service queue which loads images on background.
  * In order to request an image loading you call touch() with the pointer to
- * the cached image. Then it will try to satisfy the request as soon as 
+ * the cached image. Then it will try to satisfy the request as soon as
  * posible (that's it: after finishing an eventual loading on progress)
  * touch() returns inmediately, in order not tu disrupt the flow of the main
  * thread.
index 795c9d64ab83c24e31d958add15fd2f037f855b8..f6e094227f119855cdf5ed05b95c9ddceb97c67d 100644 (file)
@@ -543,9 +543,9 @@ void PreviewLoader::Impl::finishedGenerating(pid_t pid, int retval)
        in_progress_.erase(git);
 
        // Tell the outside world
-       std::list<PreviewImagePtr>::const_reverse_iterator 
+       std::list<PreviewImagePtr>::const_reverse_iterator
                nit  = newimages.rbegin();
-       std::list<PreviewImagePtr>::const_reverse_iterator 
+       std::list<PreviewImagePtr>::const_reverse_iterator
                nend = newimages.rend();
        for (; nit != nend; ++nit) {
                imageReady(*nit->get());
index 17b8fc5c26703d30d25577e85a21a8b3ed202e69..302474338395911a96cb31f488f05b4d3ea3be5e 100644 (file)
 #include <pwd.h>
 #include <unistd.h>
 #include <sys/types.h>
+
 namespace lyx {
 
 string const user_name()
 {
        struct passwd * pw(getpwuid(geteuid()));
        lyx::Assert(pw);
+
        string name = pw->pw_gecos;
        if (name.empty())
                name = pw->pw_name;
        return name;
 }
+
 
 string const user_email()
 {