projects
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add volatile sources support in libapt-pkg
[apt.git]
/
apt-pkg
/
install-progress.cc
diff --git
a/apt-pkg/install-progress.cc
b/apt-pkg/install-progress.cc
index 5ea8bf4d025338a6a83ceb6eadf6931087787d41..ff3f652e5613c19262a507db341042ab9ea2be11 100644
(file)
--- a/
apt-pkg/install-progress.cc
+++ b/
apt-pkg/install-progress.cc
@@
-65,10
+65,11
@@
bool PackageManager::StatusChanged(std::string /*PackageName*/,
}
PackageManagerProgressFd::PackageManagerProgressFd(int progress_fd)
}
PackageManagerProgressFd::PackageManagerProgressFd(int progress_fd)
- : StepsDone(0), StepsTotal(1)
+ :
d(NULL),
StepsDone(0), StepsTotal(1)
{
OutStatusFd = progress_fd;
}
{
OutStatusFd = progress_fd;
}
+PackageManagerProgressFd::~PackageManagerProgressFd() {}
void PackageManagerProgressFd::WriteToStatusFd(std::string s)
{
void PackageManagerProgressFd::WriteToStatusFd(std::string s)
{
@@
-153,10
+154,11
@@
bool PackageManagerProgressFd::StatusChanged(std::string PackageName,
PackageManagerProgressDeb822Fd::PackageManagerProgressDeb822Fd(int progress_fd)
PackageManagerProgressDeb822Fd::PackageManagerProgressDeb822Fd(int progress_fd)
- : StepsDone(0), StepsTotal(1)
+ :
d(NULL),
StepsDone(0), StepsTotal(1)
{
OutStatusFd = progress_fd;
}
{
OutStatusFd = progress_fd;
}
+PackageManagerProgressDeb822Fd::~PackageManagerProgressDeb822Fd() {}
void PackageManagerProgressDeb822Fd::WriteToStatusFd(std::string s)
{
void PackageManagerProgressDeb822Fd::WriteToStatusFd(std::string s)
{
@@
-233,7
+235,7
@@
bool PackageManagerProgressDeb822Fd::StatusChanged(std::string PackageName,
PackageManagerFancy::PackageManagerFancy()
PackageManagerFancy::PackageManagerFancy()
- : child_pty(-1)
+ :
d(NULL),
child_pty(-1)
{
// setup terminal size
old_SIGWINCH = signal(SIGWINCH, PackageManagerFancy::staticSIGWINCH);
{
// setup terminal size
old_SIGWINCH = signal(SIGWINCH, PackageManagerFancy::staticSIGWINCH);
@@
-433,6
+435,10
@@
bool PackageManagerText::StatusChanged(std::string PackageName,
return true;
}
return true;
}
+PackageManagerText::PackageManagerText() : PackageManager(), d(NULL) {}
+PackageManagerText::~PackageManagerText() {}
+
+
} // namespace progress
} // namespace progress