mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
change call to shared_ptr::reset, move some using declarations around
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4181 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9ed0ccbc32
commit
5296e9e995
@ -1,3 +1,7 @@
|
|||||||
|
2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
|
||||||
|
|
||||||
|
* kbmap.C (defkey): change call to shared_ptr::reset
|
||||||
|
|
||||||
2002-05-21 Juergen Vigna <jug@sad.it>
|
2002-05-21 Juergen Vigna <jug@sad.it>
|
||||||
|
|
||||||
* buffer.C (insertErtContents): fix to insert ert asis if it is
|
* buffer.C (insertErtContents): fix to insert ert asis if it is
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
|
||||||
|
|
||||||
|
* insetgraphics.C (InsetGraphics): change call of shared_ptr::reset
|
||||||
|
(draw): ditto
|
||||||
|
|
||||||
2002-05-15 John Levon <moz@compsoc.man.ac.uk>
|
2002-05-15 John Levon <moz@compsoc.man.ac.uk>
|
||||||
|
|
||||||
* insettext.C: clear selection on paste (bug 393)
|
* insettext.C: clear selection on paste (bug 393)
|
||||||
|
@ -163,7 +163,7 @@ InsetGraphics::InsetGraphics(InsetGraphics const & ig,
|
|||||||
|
|
||||||
InsetGraphics::~InsetGraphics()
|
InsetGraphics::~InsetGraphics()
|
||||||
{
|
{
|
||||||
cached_image_.reset(0);
|
cached_image_.reset();
|
||||||
grfx::GCache & gc = grfx::GCache::get();
|
grfx::GCache & gc = grfx::GCache::get();
|
||||||
gc.remove(*this);
|
gc.remove(*this);
|
||||||
|
|
||||||
@ -349,7 +349,7 @@ void InsetGraphics::draw(BufferView * bv, LyXFont const & font,
|
|||||||
|
|
||||||
// Reset the cache, ready for the next draw request
|
// Reset the cache, ready for the next draw request
|
||||||
cached_status_ = grfx::ErrorUnknown;
|
cached_status_ = grfx::ErrorUnknown;
|
||||||
cached_image_.reset(0);
|
cached_image_.reset();
|
||||||
cache_filled_ = false;
|
cache_filled_ = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -668,7 +668,7 @@ string const InsetGraphics::prepareFile(Buffer const *buf) const
|
|||||||
|
|
||||||
// Uncompress the file if necessary. If it has been uncompressed in
|
// Uncompress the file if necessary. If it has been uncompressed in
|
||||||
// a previous call to prepareFile, do nothing.
|
// a previous call to prepareFile, do nothing.
|
||||||
if (zipped) {
|
if (zipped) {
|
||||||
// What we want to end up with:
|
// What we want to end up with:
|
||||||
string const temp_file_unzipped =
|
string const temp_file_unzipped =
|
||||||
ChangeExtension(temp_file, string());
|
ChangeExtension(temp_file, string());
|
||||||
@ -734,7 +734,7 @@ int InsetGraphics::latex(Buffer const *buf, ostream & os,
|
|||||||
bool const file_exists =
|
bool const file_exists =
|
||||||
!file_.empty() &&
|
!file_.empty() &&
|
||||||
(IsFileReadable(file_) || // original
|
(IsFileReadable(file_) || // original
|
||||||
IsFileReadable(file_ + ".eps") || // original.eps
|
IsFileReadable(file_ + ".eps") || // original.eps
|
||||||
IsFileReadable(file_ + ".ps")); // original.ps
|
IsFileReadable(file_ + ".ps")); // original.ps
|
||||||
string const message = file_exists ?
|
string const message = file_exists ?
|
||||||
string() : string("bb = 0 0 200 100, draft, type=eps]");
|
string() : string("bb = 0 0 200 100, draft, type=eps]");
|
||||||
|
@ -162,8 +162,8 @@ void kb_keymap::defkey(kb_sequence * seq, int action, unsigned int r)
|
|||||||
<< seq->print()
|
<< seq->print()
|
||||||
<< "' is overriding old binding..."
|
<< "' is overriding old binding..."
|
||||||
<< endl;
|
<< endl;
|
||||||
if (it->table.get()) {
|
if (it->table.get()) {
|
||||||
it->table.reset(0);
|
it->table.reset();
|
||||||
}
|
}
|
||||||
it->action = action;
|
it->action = action;
|
||||||
return;
|
return;
|
||||||
@ -184,7 +184,7 @@ void kb_keymap::defkey(kb_sequence * seq, int action, unsigned int r)
|
|||||||
newone->mod = modmsk;
|
newone->mod = modmsk;
|
||||||
if (r + 1 == seq->length()) {
|
if (r + 1 == seq->length()) {
|
||||||
newone->action = action;
|
newone->action = action;
|
||||||
newone->table.reset(0);
|
newone->table.reset();
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
newone->table.reset(new kb_keymap);
|
newone->table.reset(new kb_keymap);
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2002-05-22 Lars Gullik Bjønnes <larsbj@birdstep.com>
|
||||||
|
|
||||||
|
* lyxsum.C: move some using declarations around.
|
||||||
|
|
||||||
2002-05-03 Herbert Voss <voss@perce.de>
|
2002-05-03 Herbert Voss <voss@perce.de>
|
||||||
|
|
||||||
* filetools.C (getExtFromContents): only print the first 60 chars of
|
* filetools.C (getExtFromContents): only print the first 60 chars of
|
||||||
|
@ -32,12 +32,6 @@ using std::endl;
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
|
||||||
using std::ifstream;
|
|
||||||
using std::for_each;
|
|
||||||
using std::istreambuf_iterator;
|
|
||||||
using std::istream_iterator;
|
|
||||||
using std::ios;
|
|
||||||
|
|
||||||
|
|
||||||
unsigned long lyx::sum(string const & file)
|
unsigned long lyx::sum(string const & file)
|
||||||
{
|
{
|
||||||
@ -76,6 +70,8 @@ unsigned long lyx::sum(string const & file)
|
|||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
|
|
||||||
|
using std::for_each;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
template<typename InputIterator>
|
template<typename InputIterator>
|
||||||
@ -107,6 +103,10 @@ unsigned long lyx::sum(string const & file)
|
|||||||
return do_crc(beg,end);
|
return do_crc(beg,end);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
using std::istream_iterator;
|
||||||
|
using std::ios;
|
||||||
|
|
||||||
unsigned long lyx::sum(string const & file)
|
unsigned long lyx::sum(string const & file)
|
||||||
{
|
{
|
||||||
lyxerr[Debug::FILES]
|
lyxerr[Debug::FILES]
|
||||||
|
Loading…
Reference in New Issue
Block a user